Skip to content

Commit

Permalink
prepare for 2.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed May 16, 2022
1 parent efe7a5d commit f91e671
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "plpgsql_check",
"abstract": "Additional tools for plpgsql functions validation",
"description": "The plpgsql_check is PostgreSQL extension with functionality for direct or indirect extra validation of functions in plpgsql language. It verifies a validity of SQL identifiers used in plpgsql code. It try to identify a performance issues. Modern versions has integrated profiler. The table and function dependencies can be displayed",
"version": "2.1.5",
"version": "2.1.6",
"maintainer": "Pavel STEHULE <[email protected]>",
"license": "bsd",
"provides": {
"plpgsql_check": {
"abstract": "Additional tools for plpgsql functions validation",
"file": "sql/plpgsql_check_active.sql",
"docfile": "README.md",
"version": "2.1.5"
"version": "2.1.6"
}
},
"prereqs": {
Expand Down
2 changes: 1 addition & 1 deletion postgresql10-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 2.1.5
Version: 2.1.6
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down
2 changes: 1 addition & 1 deletion postgresql11-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 2.1.5
Version: 2.1.6
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down
2 changes: 1 addition & 1 deletion postgresql12-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 2.1.5
Version: 2.1.6
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down
2 changes: 1 addition & 1 deletion postgresql13-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 2.1.5
Version: 2.1.6
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down
2 changes: 1 addition & 1 deletion postgresql14-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 2.1.5
Version: 2.1.6
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down
2 changes: 1 addition & 1 deletion postgresql15-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 2.1.5
Version: 2.1.6
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down
5 changes: 5 additions & 0 deletions src/plpgsql_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ _PG_init(void)
NULL, NULL, NULL);

#if PG_VERSION_NUM < 150000

/*
* If you change code here, don't forget to also report the
* modifications in plpgsql_check_profiler_shmem_request() for pg15 and
Expand All @@ -318,15 +319,19 @@ _PG_init(void)

RequestNamedLWLockTranche("plpgsql_check profiler", 1);
RequestNamedLWLockTranche("plpgsql_check fstats", 1);

#endif

/*
* Install hooks.
*/
#if PG_VERSION_NUM >= 150000

prev_shmem_startup_hook = shmem_request_hook;
shmem_request_hook = plpgsql_check_profiler_shmem_request;

#endif

prev_shmem_startup_hook = shmem_startup_hook;
shmem_startup_hook = plpgsql_check_profiler_shmem_startup;
}
Expand Down
2 changes: 2 additions & 0 deletions src/profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ plpgsql_check_shmem_size(void)
* _PG_init() for pg14 and below.
*/
#if PG_VERSION_NUM >= 150000

void
plpgsql_check_profiler_shmem_request(void)
{
Expand All @@ -624,6 +625,7 @@ plpgsql_check_profiler_shmem_request(void)
RequestNamedLWLockTranche("plpgsql_check profiler", 1);
RequestNamedLWLockTranche("plpgsql_check fstats", 1);
}

#endif

/*
Expand Down

0 comments on commit f91e671

Please sign in to comment.