-
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.
- Loading branch information
Showing
18 changed files
with
80 additions
and
17 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
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 |
---|---|---|
@@ -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": { | ||
|
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
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,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', ''); | ||
|
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
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
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
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
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
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
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
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
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
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
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
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
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
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 "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'; | ||
|