Skip to content

Commit

Permalink
Update CHangeLog and version to 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Apr 12, 2024
1 parent 853d1c5 commit 07a4618
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 4 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Version 3.2 - Apr 12 2024

This is a maintenance release to fix issues reported by users since latest
release and compatibility with future PG 17.

- Add information about privilege on the pgtt schema.
- Make test on lock compatible with version <= 14
- The temporary table needs to be locked. Thanks to Leo X.M. Zeng for the patch.
- Replace MyBackendId with MyProcNumber for PG > 16
- Check extension when loading pgtt. Thanks to Japin Li for the patch.
- Release lock on global template temporary table. Thanks to Japin Li for the patch.

Version 3.1 - Dec 26 2023

This is a maintenance release to fix issues reported by users since latest
Expand Down
6 changes: 3 additions & 3 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": "3.1.0",
"version": "3.2.0",
"maintainer": "Gilles Darold <[email protected]>",
"license": "postgresql",
"release_status": "stable",
"provides": {
"pgtt": {
"abstract": "Extension to manage Global Temporary Tables",
"file": "sql/pgtt--3.1.0.sql",
"file": "sql/pgtt--3.2.0.sql",
"docfile": "doc/pgtt.md",
"version": "3.1.0"
"version": "3.2.0"
}
},
"resources": {
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 = '3.1.0'
default_version = '3.2.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.2.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--3.1.0--3.2.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 07a4618

Please sign in to comment.