Final touches (I hope).
authorRobert Haas <rhaas@postgresql.org>
Thu, 30 Jan 2014 18:36:02 +0000 (13:36 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 30 Jan 2014 18:36:02 +0000 (13:36 -0500)
src/backend/replication/slot.c
src/backend/replication/slotfuncs.c
src/include/catalog/pg_proc.h

index 306ad9a21d540a925a86eae317afb86c1c2d24cf..30aff5f5e3688668553be6c1a9fc0b7d2256aa62 100644 (file)
@@ -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")));
 }
 
 /*
index 4fc1e3d278d1c594621f683fd303e901023bd42f..98a860e5288cbbe20ccb071cfb569c7eb74297bc 100644 (file)
@@ -82,7 +82,7 @@ pg_drop_replication_slot(PG_FUNCTION_ARGS)
 
        ReplicationSlotDrop(NameStr(*name));
 
-       PG_RETURN_INT32(0);
+       PG_RETURN_VOID();
 }
 
 /*
index 13b88f230435be1b0726984ebe450604c9b970ed..a8d2fb175ca3f3d81310188d7ff3e919d2bbdf4a 100644 (file)
@@ -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");