Update extension metadata for 4.1 release

This release does not make any changes to the extension database
objects.
This commit is contained in:
Ian Barwick
2018-07-24 09:31:37 +09:00
parent 527a5f7fee
commit c236405251
5 changed files with 8 additions and 11 deletions

View File

@@ -11,7 +11,10 @@ EXTENSION = repmgr
DATA = \
repmgr--unpackaged--4.0.sql \
repmgr--4.0.sql
repmgr--4.0.sql \
repmgr--4.0--4.1.sql \
repmgr--4.1.sql
REGRESS = repmgr_extension

2
repmgr--4.0--4.1.sql Normal file
View File

@@ -0,0 +1,2 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION repmgr" to load this file. \quit

View File

@@ -1,8 +0,0 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION repmgr" to load this file. \quit
ALTER TABLE repmgr.nodes
DROP CONSTRAINT nodes_type_check,
ADD CONSTRAINT nodes_type_check CHECK (type IN('primary','standby','witness','bdr','bdr_standby'));
type TEXT NOT NULL CHECK (type IN('primary','standby','witness','bdr','bdr_standby')),

View File

@@ -6,7 +6,7 @@ CREATE TABLE repmgr.nodes (
upstream_node_id INTEGER NULL REFERENCES nodes (node_id) DEFERRABLE,
active BOOLEAN NOT NULL DEFAULT TRUE,
node_name TEXT NOT NULL,
type TEXT NOT NULL CHECK (type IN('primary','standby','witness','bdr','bdr_standby')),
type TEXT NOT NULL CHECK (type IN('primary','standby','witness','bdr')),
location TEXT NOT NULL DEFAULT 'default',
priority INT NOT NULL DEFAULT 100,
conninfo TEXT NOT NULL,

View File

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