Skip to content

Commit

Permalink
Update ChangeLog and version to 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed May 31, 2024
1 parent f84fa01 commit a114197
Show file tree
Hide file tree
Showing 18 changed files with 80 additions and 17 deletions.
28 changes: 28 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
Version 4.0 - May 31 2024

This major release allow preloading pgtt in session_preload_libraries
and adds support to Windows operating system. Here is the complete list
of changes.

- Add port to Windows operating system. Note that, for some unknown reasons
it doesn't work at all with PostgreSQL 13. Thanks to Julien Rouhaud for
the patch
- Allow preloading pgtt in session_preload_libraries. The module is now lazily
loaded when it might be needed (after parse analysis, before executor
startup and before utility statements execution), and all the code is simply
bypassed if the underlying extension has not been created. Thanks to Julien
Rouhaud for the patch.
- Fix first query execution after a LOAD command. If the extension is loaded
with a plain LOAD command, the search_path will only be set during the next
query execution. It means that the very first query executed after such a
LOAD wouldn't see the global temporary tables. Thanks to Julien Rouhaud for
the patch.
- Remove the relocation test, the extension is not relocatable anymore.
- Fix crash with RESET ALL. RESET ALL has a NULL "name" field, so we can't use
strcmp in that case. Since the existing code is only interested in SET
commands, just move up the check that the command is a VAR_SET_VALUE to
ensure that we will have a GUC name. Thanks to Julien Rouhaud for the patch.
- Fix various minor whitespace and indent issues. Thanks to Julien Rouhaud for
the patch.
- Add Julen Rouhaud in the authors and maintainers list.

Version 3.2 - Apr 12 2024

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.2.0",
"version": "4.0.0",
"maintainer": "Gilles Darold <[email protected]>",
"license": "postgresql",
"release_status": "stable",
"provides": {
"pgtt": {
"abstract": "Extension to manage Global Temporary Tables",
"file": "sql/pgtt--3.2.0.sql",
"file": "sql/pgtt--4.0.0.sql",
"docfile": "doc/pgtt.md",
"version": "3.2.0"
"version": "4.0.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.2.0'
default_version = '4.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--4.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', '');

2 changes: 1 addition & 1 deletion updates/pgtt--2.0.0--2.1.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.1.0--2.2.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.10.0--3.0.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.2.0--2.3.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.3.0--2.4.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.4.0--2.5.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.5.0--2.6.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.6.0--2.7.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.7.0--2.8.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.8.0--2.9.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--2.9.0--2.10.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--3.0.0--3.1.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
2 changes: 1 addition & 1 deletion updates/pgtt--3.1.0--3.2.0.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit
\echo Use "ALTER EXTENSION pgtt UPDATE" to load this file. \quit

-- check the functions bodies as creation time, enabled by default
SET LOCAL check_function_bodies = on ;
Expand Down
9 changes: 9 additions & 0 deletions updates/pgtt--3.2.0--4.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 "ALTER EXTENSION pgtt UPDATE" 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 a114197

Please sign in to comment.