Skip to content

Commit

Permalink
Add missing SQL files for version 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Dec 26, 2023
1 parent 1483dce commit 9ceae18
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
26 changes: 26 additions & 0 deletions sql/pgtt--3.1.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.0.0--3.1.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 9ceae18

Please sign in to comment.