pg prefix-ize.
authorRobert Haas <rhaas@postgresql.org>
Thu, 30 Jan 2014 18:28:44 +0000 (13:28 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 30 Jan 2014 18:28:44 +0000 (13:28 -0500)
doc/src/sgml/func.sgml
doc/src/sgml/high-availability.sgml
src/backend/replication/slotfuncs.c
src/include/catalog/pg_proc.h

index a5cc2ebca570e45b750e930d7ba9e57925d43ac9..8dbfd80ab3d65f139fb5885cfb1ebba9ee71a285 100644 (file)
@@ -16312,9 +16312,9 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
       <row>
        <entry>
         <indexterm>
-         <primary>create_physical_replication_slot</primary>
+         <primary>pg_create_physical_replication_slot</primary>
         </indexterm>
-        <literal><function>create_physical_replication_slot(<parameter>slotname</parameter> <type>text</type>, <parameter>plugin</parameter> <type>text</type>)</function></literal>
+        <literal><function>pg_create_physical_replication_slot(<parameter>slotname</parameter> <type>text</type>, <parameter>plugin</parameter> <type>text</type>)</function></literal>
        </entry>
        <entry>
         (<parameter>slotname</parameter> <type>text</type>, <parameter>xlog_position</parameter> <type>text</type>)
@@ -16330,9 +16330,9 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
       <row>
        <entry>
         <indexterm>
-         <primary>drop_replication_slot</primary>
+         <primary>pg_drop_replication_slot</primary>
         </indexterm>
-        <literal><function>drop_replication_slot(<parameter>slotname</parameter> <type>text</type>)</function></literal>
+        <literal><function>pg_drop_replication_slot(<parameter>slotname</parameter> <type>text</type>)</function></literal>
        </entry>
        <entry>
         (<parameter>slotname</parameter> <type>text</type>)
index 1937431e67f51fc1f2039bf39c171dc608489ca0..9d43586fe2f99dc66059799f745465d9c21d2e4b 100644 (file)
@@ -926,7 +926,7 @@ primary_conninfo = 'host=192.168.1.50 port=5432 user=foo password=foopass'
     <para>
      You can create a replication slot like this:
 <programlisting>
-postgres=# SELECT * FROM create_physical_replication_slot('node_a_slot');
+postgres=# SELECT * FROM pg_create_physical_replication_slot('node_a_slot');
   slotname   | xlog_position
 -------------+---------------
  node_a_slot |
index 3009cfc61429a32f956179fe9431582c6fafe59f..4fc1e3d278d1c594621f683fd303e901023bd42f 100644 (file)
@@ -19,8 +19,8 @@
 #include "utils/builtins.h"
 #include "replication/slot.h"
 
-Datum          create_physical_replication_slot(PG_FUNCTION_ARGS);
-Datum          drop_replication_slot(PG_FUNCTION_ARGS);
+Datum          pg_create_physical_replication_slot(PG_FUNCTION_ARGS);
+Datum          pg_drop_replication_slot(PG_FUNCTION_ARGS);
 
 static void
 check_permissions(void)
@@ -36,7 +36,7 @@ check_permissions(void)
  * replication slot.
  */
 Datum
-create_physical_replication_slot(PG_FUNCTION_ARGS)
+pg_create_physical_replication_slot(PG_FUNCTION_ARGS)
 {
        Name            name = PG_GETARG_NAME(0);
        Datum           values[2];
@@ -72,7 +72,7 @@ create_physical_replication_slot(PG_FUNCTION_ARGS)
  * SQL function for dropping a replication slot.
  */
 Datum
-drop_replication_slot(PG_FUNCTION_ARGS)
+pg_drop_replication_slot(PG_FUNCTION_ARGS)
 {
        Name            name = PG_GETARG_NAME(0);
 
index 0dc5ebde310b184f6a851a91e0769a0be64ddd57..13b88f230435be1b0726984ebe450604c9b970ed 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 (  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_ create_physical_replication_slot _null_ _null_ _null_ ));
 DESCR("create a physical replication slot");
-DATA(insert OID = 3781 (  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 23 "19" _null_ _null_ _null_ _null_ 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");