Skip to content

Commit

Permalink
Include table content in dump
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju committed Jul 20, 2015
1 parent 3b4499f commit d7dd7b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pg_track_settings--1.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SET client_encoding = 'UTF8';
CREATE TABLE pg_track_settings_list (
name text PRIMARY KEY
);
SELECT pg_catalog.pg_extension_config_dump('pg_track_settings_list', '');

CREATE TABLE pg_track_settings_history (
ts timestamp with time zone,
Expand All @@ -19,13 +20,15 @@ CREATE TABLE pg_track_settings_history (
is_dropped boolean NOT NULL DEFAULT false,
PRIMARY KEY(ts, name)
);
SELECT pg_catalog.pg_extension_config_dump('pg_track_settings_history', '');

CREATE TABLE pg_track_db_role_settings_list (
name text,
setdatabase oid,
setrole oid,
PRIMARY KEY (name, setdatabase, setrole)
);
SELECT pg_catalog.pg_extension_config_dump('pg_track_db_role_settings_list', '');

CREATE TABLE pg_track_db_role_settings_history (
ts timestamp with time zone,
Expand All @@ -36,10 +39,12 @@ CREATE TABLE pg_track_db_role_settings_history (
is_dropped boolean NOT NULL DEFAULT false,
PRIMARY KEY(ts, name, setdatabase, setrole)
);
SELECT pg_catalog.pg_extension_config_dump('pg_track_db_role_settings_history', '');

CREATE TABLE pg_reboot (
ts timestamp with time zone PRIMARY KEY
);
SELECT pg_catalog.pg_extension_config_dump('pg_reboot', '');

CREATE OR REPLACE FUNCTION pg_track_settings_snapshot() RETURNS boolean AS
$_$
Expand Down

0 comments on commit d7dd7b9

Please sign in to comment.