Tweak extension configuration

This commit is contained in:
Ian Barwick
2017-04-19 10:12:26 +09:00
parent 856244fdd6
commit e306eb213b
3 changed files with 12 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ MODULE_big = repmgr
EXTENSION = repmgr EXTENSION = repmgr
DATA = repmgr--4.0.sql
# Hacky workaround to install the binaries # Hacky workaround to install the binaries
SCRIPTS_built = repmgr4 repmgrd4 SCRIPTS_built = repmgr4 repmgrd4

7
repmgr--4.0.sql Normal file
View File

@@ -0,0 +1,7 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION repmgr" to load this file. \quit
CREATE TABLE nodes (
node_id INTEGER PRIMARY KEY,
type TEXT NOT NULL CHECK (type IN('master','standby','witness','bdr'))
);

View File

@@ -1,7 +1,8 @@
# repmgr extension # repmgr extension
comment = 'Replication manager for PostgreSQL' comment = 'Replication manager for PostgreSQL'
default_version = '4.0.0.0' default_version = '4.0'
module_pathname = '$libdir/repmgr' module_pathname = '$libdir/repmgr'
relocatable = false relocatable = false
schema = pg_catalog schema = repmgr