File tree Expand file tree Collapse file tree 6 files changed +57
-4
lines changed
Expand file tree Collapse file tree 6 files changed +57
-4
lines changed Original file line number Diff line number Diff line change 1+ Version 2.6 - Sep 22 2021
2+
3+ This is a maintenance release to add support for upcomming PostgreSQL 14.
4+
5+ - Add support to PostgreSQL 14. Thanks to Devrim Gunduz for the report
6+ and MigOps Inc for the patch.
7+
8+
19Version 2.5 - Jun 08 2021
210
311This is a maintenance release to hotfix port on PostgreSQL 9.6.
Original file line number Diff line number Diff line change 11{
22 "name" : " pgtt" ,
33 "abstract" : " Extension to add Global Temporary Tables feature to PostgreSQL." ,
4- "version" : " 2.5 .0" ,
4+ "version" : " 2.6 .0" ,
55 "maintainer" : " Gilles Darold <gilles@darold.net>" ,
66 "license" : " postgresql" ,
77 "release_status" : " stable" ,
88 "provides" : {
99 "pgtt" : {
1010 "abstract" : " Extension to manage Global Temporary Tables" ,
11- "file" : " sql/pgtt--2.5 .0.sql" ,
11+ "file" : " sql/pgtt--2.6 .0.sql" ,
1212 "docfile" : " doc/pgtt.md" ,
13- "version" : " 2.5 .0"
13+ "version" : " 2.6 .0"
1414 }
1515 },
1616 "resources" : {
Original file line number Diff line number Diff line change 1- default_version = '2.5 .0'
1+ default_version = '2.6 .0'
22comment = 'Extension to add Global Temporary Tables feature to PostgreSQL'
33module_pathname = '$libdir/pgtt'
44schema = 'pgtt_schema'
Original file line number Diff line number Diff line change 1+ -- complain if script is sourced in psql, rather than via CREATE EXTENSION
2+ \echo Use " CREATE EXTENSION pgtt" to load this file. \quit
3+
4+ -- --
5+ -- Create schema dedicated to the global temporary table
6+ -- --
7+ CREATE SCHEMA IF NOT EXISTS @extschema@;
8+ REVOKE ALL ON SCHEMA @extschema@ FROM PUBLIC;
9+ GRANT USAGE ON SCHEMA @extschema@ TO PUBLIC;
10+
11+ -- --
12+ -- Table used to store information about Global Temporary Tables.
13+ -- Content will be loaded in memory by the pgtt extension.
14+ -- --
15+ CREATE TABLE @extschema@.pg_global_temp_tables (
16+ relid integer NOT NULL ,
17+ nspname name NOT NULL ,
18+ relname name NOT NULL ,
19+ preserved boolean ,
20+ code text ,
21+ UNIQUE (nspname, relname)
22+ );
23+ GRANT ALL ON TABLE @extschema@.pg_global_temp_tables TO PUBLIC;
24+
25+ -- Include tables into pg_dump
26+ SELECT pg_catalog .pg_extension_config_dump (' pg_global_temp_tables' , ' ' );
27+
Original file line number Diff line number Diff line change 1+ -- complain if script is sourced in psql, rather than via CREATE EXTENSION
2+ \echo Use " CREATE EXTENSION pgtt" to load this file. \quit
3+
4+ -- check the functions bodies as creation time, enabled by default
5+ SET LOCAL check_function_bodies = on ;
6+
7+ -- make sure of client encoding
8+ SET LOCAL client_encoding = ' UTF8' ;
9+
Original file line number Diff line number Diff line change 1+ -- complain if script is sourced in psql, rather than via CREATE EXTENSION
2+ \echo Use " CREATE EXTENSION pgtt" to load this file. \quit
3+
4+ -- check the functions bodies as creation time, enabled by default
5+ SET LOCAL check_function_bodies = on ;
6+
7+ -- make sure of client encoding
8+ SET LOCAL client_encoding = ' UTF8' ;
9+
You can’t perform that action at this time.
0 commit comments