From 3600e1a2aa894c28353cfe183e7a150d5509c356 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 30 Jan 2014 13:36:02 -0500 Subject: [PATCH] Final touches (I hope). --- src/backend/replication/slot.c | 2 +- src/backend/replication/slotfuncs.c | 2 +- src/include/catalog/pg_proc.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index 306ad9a21d..30aff5f5e3 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -610,7 +610,7 @@ CheckSlotRequirements(void) if (wal_level < WAL_LEVEL_ARCHIVE) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), - errmsg("replication slots can only be used i wal_level >= archive"))); + errmsg("replication slots can only be used if wal_level >= archive"))); } /* diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c index 4fc1e3d278..98a860e528 100644 --- a/src/backend/replication/slotfuncs.c +++ b/src/backend/replication/slotfuncs.c @@ -82,7 +82,7 @@ pg_drop_replication_slot(PG_FUNCTION_ARGS) ReplicationSlotDrop(NameStr(*name)); - PG_RETURN_INT32(0); + PG_RETURN_VOID(); } /* diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 13b88f2304..a8d2fb175c 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -4779,9 +4779,9 @@ DATA(insert OID = 3473 ( spg_range_quad_leaf_consistent PGNSP PGUID 12 1 0 0 0 DESCR("SP-GiST support for quad tree over range"); /* replication slots */ -DATA(insert OID = 3780 ( pg_create_physical_replication_slot PGNSP PGUID 12 1 0 0 0 f f f f f f v 1 0 2249 "19" "{19,25,25}" "{i,o,o}" "{slotname,slotname,xlog_position}" _null_ create_physical_replication_slot _null_ _null_ _null_ )); +DATA(insert OID = 3780 ( pg_create_physical_replication_slot PGNSP PGUID 12 1 0 0 0 f f f f f f v 1 0 2249 "19" "{19,25,25}" "{i,o,o}" "{slotname,slotname,xlog_position}" _null_ pg_create_physical_replication_slot _null_ _null_ _null_ )); DESCR("create a physical replication slot"); -DATA(insert OID = 3781 ( pg_drop_replication_slot PGNSP PGUID 12 1 0 0 0 f f f f f f v 1 0 23 "19" _null_ _null_ _null_ _null_ drop_replication_slot _null_ _null_ _null_ )); +DATA(insert OID = 3781 ( pg_drop_replication_slot PGNSP PGUID 12 1 0 0 0 f f f f f f v 1 0 2278 "19" _null_ _null_ _null_ _null_ pg_drop_replication_slot _null_ _null_ _null_ )); DESCR("drop a replication slot"); DATA(insert OID = 3475 ( pg_get_replication_slots PGNSP PGUID 12 1 10 0 0 f f f f f t s 0 0 2249 "" "{25,25,26,16,28,25}" "{o,o,o,o,o,o}" "{slot_name,slot_type,datoid,active,xmin,restart_lsn}" _null_ pg_get_replication_slots _null_ _null_ _null_ )); DESCR("information about replication slots currently in use"); -- 2.39.5