Skip to content

Commit

Permalink
prepare for 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Dec 6, 2023
1 parent 0f32f43 commit 41c9492
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 13 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.6.2",
"version": "2.7.0",
"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.6.2"
"version": "2.7.0"
}
},
"prereqs": {
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MODULE_big = plpgsql_check
OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c))
DATA = plpgsql_check--2.6.sql
DATA = plpgsql_check--2.7.sql
EXTENSION = plpgsql_check

ifndef MAJORVERSION
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion plpgsql_check.control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# plpgsql_check extension
comment = 'extended check for plpgsql functions'
default_version = '2.6'
default_version = '2.7'
module_pathname = '$libdir/plpgsql_check'
relocatable = false
requires = 'plpgsql'
5 changes: 4 additions & 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.6.2
Version: 2.7.0
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down Expand Up @@ -49,6 +49,9 @@ rm -rf %{buildroot}
%{pginstdir}/share/extension/*.control

%changelog
* Wed Dec 6 2023 - Pavel Stehule <[email protected]> 2.7.0
- unclosed cursors detection

* Tue Oct 31 2023 - Pavel Stehule <[email protected]> 2.6.0
- simple constant tracing support

Expand Down
5 changes: 4 additions & 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.6.2
Version: 2.7.0
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down Expand Up @@ -49,6 +49,9 @@ rm -rf %{buildroot}
%{pginstdir}/share/extension/*.control

%changelog
* Wed Dec 6 2023 - Pavel Stehule <[email protected]> 2.7.0
- unclosed cursors detection

* Tue Oct 31 2023 - Pavel Stehule <[email protected]> 2.6.0
- simple constant tracing support

Expand Down
5 changes: 4 additions & 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.6.2
Version: 2.7.0
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down Expand Up @@ -49,6 +49,9 @@ rm -rf %{buildroot}
%{pginstdir}/share/extension/*.control

%changelog
* Wed Dec 6 2023 - Pavel Stehule <[email protected]> 2.7.0
- unclosed cursors detection

* Tue Oct 31 2023 - Pavel Stehule <[email protected]> 2.6.0
- simple constant tracing support

Expand Down
5 changes: 4 additions & 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.6.2
Version: 2.7.0
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down Expand Up @@ -49,6 +49,9 @@ rm -rf %{buildroot}
%{pginstdir}/share/extension/*.control

%changelog
* Wed Dec 6 2023 - Pavel Stehule <[email protected]> 2.7.0
- unclosed cursors detection

* Tue Oct 31 2023 - Pavel Stehule <[email protected]> 2.6.0
- simple constant tracing support

Expand Down
5 changes: 4 additions & 1 deletion postgresql16-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.6.2
Version: 2.7.0
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down Expand Up @@ -49,6 +49,9 @@ rm -rf %{buildroot}
%{pginstdir}/share/extension/*.control

%changelog
* Wed Dec 6 2023 - Pavel Stehule <[email protected]> 2.7.0
- unclosed cursors detection

* Tue Oct 31 2023 - Pavel Stehule <[email protected]> 2.6.0
- simple constant tracing support

Expand Down
5 changes: 4 additions & 1 deletion postgresql17-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.6.2
Version: 2.7.0
Release: 1%{?dist}
Summary: Additional tools for plpgsql functions validation

Expand Down Expand Up @@ -49,6 +49,9 @@ rm -rf %{buildroot}
%{pginstdir}/share/extension/*.control

%changelog
* Wed Dec 6 2023 - Pavel Stehule <[email protected]> 2.7.0
- unclosed cursors detection

* Tue Oct 31 2023 - Pavel Stehule <[email protected]> 2.6.0
- simple constant tracing support

Expand Down
4 changes: 2 additions & 2 deletions src/cursors_leaks.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func_end(PLpgSQL_execstate *estate,

ereport(plpgsql_check_cursors_leaks_level,
errcode(ERRCODE_INVALID_CURSOR_STATE),
errmsg("cursor is not closed", ct->curname),
errmsg("cursor is not closed"),
errdetail("%s", context));
pfree(context);

Expand Down Expand Up @@ -211,7 +211,7 @@ stmt_end(PLpgSQL_execstate *estate, PLpgSQL_stmt *stmt, void **plugin2_info)

ereport(plpgsql_check_cursors_leaks_level,
errcode(ERRCODE_INVALID_CURSOR_STATE),
errmsg("cursor is not closed", ct->curname),
errmsg("cursor is not closed"),
errdetail("%s", context));

pfree(context);
Expand Down
2 changes: 1 addition & 1 deletion src/plpgsql_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static bool is_expected_extversion = false;
*/
#define LOAD_EXTERNAL_FUNCTION(file, funcname) ((void *) (load_external_function(file, funcname, true, NULL)))

#define EXPECTED_EXTVERSION "2.6"
#define EXPECTED_EXTVERSION "2.7"

void
plpgsql_check_check_ext_version(Oid fn_oid)
Expand Down

0 comments on commit 41c9492

Please sign in to comment.