Initial commit

This commit is contained in:
postgres
2010-06-17 10:43:35 -05:00
commit a12e719259
17 changed files with 858 additions and 0 deletions

18
repmgr.sql Normal file
View File

@@ -0,0 +1,18 @@
CREATE TABLE repl_nodes (
id integer primary key,
cluster text not null,
conninfo text not null
);
drop table if exists repl_status;
CREATE TABLE repl_status(
primary_node INTEGER NOT NULL,
standby_node INTEGER NOT NULL,
last_monitor_timestamp TIMESTAMP WITH TIME ZONE NOT NULL,
last_wal_primary_location TEXT NOT NULL,
last_wal_standby_location TEXT NOT NULL,
last_wal_standby_timestamp TIMESTAMP WITH TIME ZONE NOT NULL,
lag_time INTERVAL NOT NULL
-- num_wal_packets INTEGER NOT NULL
);