-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update version to 1.3 and add upgrade/downgrade files
- Loading branch information
Gilles Darold
committed
Apr 1, 2021
1 parent
0e13898
commit 6c1c7f2
Showing
12 changed files
with
140 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "pgtt", | ||
"abstract": "Extension to add Global Temporary Tables feature to PostgreSQL", | ||
"description": "pgtt is a PostgreSQL extension to add Oracle-style Global Temporary Tables feature. It is based on unlogged table, partitioning and views.", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"maintainer": "Gilles Darold <[email protected]>", | ||
"license": { | ||
"PostgreSQL": "http://www.postgresql.org/about/licence" | ||
|
@@ -17,14 +17,14 @@ | |
}, | ||
"provides": { | ||
"pgtt": { | ||
"file": "sql/pgtt--2.2.0.sql", | ||
"file": "sql/pgtt--2.3.0.sql", | ||
"docfile": "doc/pgtt.md", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"abstract": "Extension to manage Global Temporary Tables" | ||
} | ||
}, | ||
"meta-spec": { | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"url": "http://pgxn.org/meta/spec.txt" | ||
}, | ||
"tags": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION | ||
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit | ||
|
||
---- | ||
-- Create schema dedicated to the global temporary table | ||
---- | ||
CREATE SCHEMA IF NOT EXISTS @extschema@; | ||
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', ''); | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION | ||
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit | ||
|
||
---- | ||
-- Create schema dedicated to the global temporary table | ||
---- | ||
CREATE SCHEMA IF NOT EXISTS @extschema@; | ||
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', ''); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION | ||
\echo Use "CREATE EXTENSION pgtt" to load this file. \quit | ||
|
||
---- | ||
-- Create schema dedicated to the global temporary table | ||
---- | ||
CREATE SCHEMA IF NOT EXISTS @extschema@; | ||
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', ''); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
|