Skip to content

Commit

Permalink
Update ChangeLog and version to v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Sep 17, 2023
1 parent 315958f commit a4b7ea2
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 5 deletions.
19 changes: 19 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
Version 3.0 - Sep 17 2023

This major release fix several issues related to PostgreSQL v16 port
and remove support to PostgreSQL version prior 12. Here is the complete
list of changes.

- Remove support to PostgreSQL prior v12.
- Fix compilation error: static declaration of get_extension_schema follows
non-static declaration. Thanks to Devrim Gunduz for the report.
- Remove grouping set in regexp.
- Add -Wno-ignored-attributes to CPPFLAGS to avoid compilation warning on
pg_vsnprintf call.
- Replace GetOverrideSearchPath() call by GetSearchPathMatcher() with
PG > 16
- Fix debug information print on Windows. Thanks to Lanlan for the patch.
- Replace reg* regexp function with the pg_reg* function. Thanks to Lanlan
for the report.
- Fix port to PostgreSQL v16. Thanks to Julien Rouhaud for the patch.

Version 2.10 - Feb 23 2023

This is a maintenance release to fix a lock issue in multi parallel process
Expand Down
8 changes: 4 additions & 4 deletions META.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "pgtt",
"abstract": "Extension to add Global Temporary Tables feature to PostgreSQL.",
"version": "2.10.0",
"version": "3.0.0",
"maintainer": "Gilles Darold <[email protected]>",
"license": "postgresql",
"release_status": "stable",
"provides": {
"pgtt": {
"abstract": "Extension to manage Global Temporary Tables",
"file": "sql/pgtt--2.10.0.sql",
"file": "sql/pgtt--3.0.0.sql",
"docfile": "doc/pgtt.md",
"version": "2.10.0"
"version": "3.0.0"
}
},
"resources": {
Expand All @@ -26,7 +26,7 @@
"prereqs": {
"runtime": {
"requires": {
"PostgreSQL": "9.6.0"
"PostgreSQL": "12.0"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion pgtt.control
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_version = '2.10.0'
default_version = '3.0.0'
comment = 'Extension to add Global Temporary Tables feature to PostgreSQL'
module_pathname = '$libdir/pgtt'
schema = 'pgtt_schema'
Expand Down
26 changes: 26 additions & 0 deletions sql/pgtt--3.0.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit

----
-- Fix privileges on schema dedicated to the global temporary table
----
REVOKE ALL ON SCHEMA @extschema@ FROM PUBLIC;
GRANT USAGE ON SCHEMA @extschema@ TO PUBLIC;

----
-- Table used to store information about Global Temporary Tables.
-- Content will be loaded in memory by the pgtt extension.
----
CREATE TABLE @[email protected]_global_temp_tables (
relid integer NOT NULL,
nspname name NOT NULL,
relname name NOT NULL,
preserved boolean,
code text,
UNIQUE (nspname, relname)
);
GRANT ALL ON TABLE @[email protected]_global_temp_tables TO PUBLIC;

-- Include tables into pg_dump
SELECT pg_catalog.pg_extension_config_dump('pg_global_temp_tables', '');

9 changes: 9 additions & 0 deletions updates/pgtt--2.10.0--3.0.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;

-- make sure of client encoding
SET LOCAL client_encoding = 'UTF8';

0 comments on commit a4b7ea2

Please sign in to comment.