bdr: doc: Add stub docs for upgrade
authorCraig Ringer <craig@2ndquadrant.com>
Mon, 23 Mar 2015 03:43:42 +0000 (11:43 +0800)
committerCraig Ringer <craig@2ndquadrant.com>
Mon, 23 Mar 2015 03:43:42 +0000 (11:43 +0800)
Add skeletal upgrade docs with entry for bdr_upgrade_to_090.

Also documents bdr_replicate_ddl_command

doc/bdr.sgml
doc/filelist.sgml
doc/manual-functions.sgml
doc/manual-upgrade.sgml [new file with mode: 0644]

index 60fea5ff5af73f0d2f034a7bd490b906bda7e50c..fe1b116db34a5cd85332c996e7bc0f6b1b406721 100644 (file)
@@ -81,6 +81,7 @@
   &manual-monitoring;
   &manual-settings;
   &manual-functions;
+  &manual-upgrade;
 
  </part>
 
index 6035229354b83d905b3cfaef3bf0203f7211ec21..55fd9da2da229fb5f7eff6caf3b27199e90707ef 100644 (file)
@@ -45,4 +45,5 @@
 <!ENTITY manual-monitoring      SYSTEM "manual-monitoring.sgml">
 <!ENTITY manual-settings      SYSTEM "manual-settings.sgml">
 <!ENTITY manual-functions      SYSTEM "manual-functions.sgml">
+<!ENTITY manual-upgrade        SYSTEM "manual-upgrade.sgml">
 <!ENTITY appendix-signatures      SYSTEM "appendix-signatures.sgml">
index 992068f44cfd5ef666e4226dc8fff7ea26f4fb74..399c40ed49df16cf7256da186244b2b500645d5b 100644 (file)
 
  <warning>
   <para>
-   Do <emphasis>not</emphasis> directly call functions with the suffix
+   Do <emphasis>not</emphasis> directly call functions with the prefix
    <literal>internal</literal>, they are intended for &bdr;'s internal
    use only and may lack sanity checks present in the public-facing
-   functions. Stick to using the functions documented here, others
+   functions and <emphasis>could break your replication setup</emphasis>.
+   Stick to using the functions documented here, others
    are subject to change without notice.
   </para>
  </warning>
         </indexterm>
         <literal><function>bdr.bdr_apply_pause()</function></literal>
        </entry>
+       <entry>void</entry>
        <entry>
         Temporarily stop applying changes from remote nodes to the local node,
         until resume is requested with
         </indexterm>
         <literal><function>bdr.bdr_apply_resume()</function></literal>
        </entry>
+       <entry>void</entry>
        <entry>
         Resume replaying changes from peer nodes after replay has been paused
         by <function>bdr.bdr_apply_pause()</function>.
        </entry>
       </row>
 
+      <row>
+       <entry>&bdr;</entry>
+       <entry>
+        <indexterm>
+         <primary>bdr.bdr_replicate_ddl_command</primary>
+        </indexterm>
+        <literal><function>bdr.bdr_replicate_ddl_command(<replaceable>cmd text</replaceable>)</function></literal>
+       </entry>
+       <entry>void</entry>
+       <entry>
+        Execute the <acronym>SQL</acronym> (usually <acronym>DDL</acronym>)
+        <replaceable>cmd</replaceable> on the local node and queue it for
+        extension on all peer nodes. <emphasis>This function is mainly for &bdr; internal
+        use and bypasses some safety checks, use with caution.</emphasis>
+       </entry>
+      </row>
+
      </tbody>
     </tgroup>
    </table>
 
  </sect1>
 
+ <sect1 id="functions-upgrade" xreflabel="Upgrade functions">
+  <title>Upgrade functions</title>
+
+  <para>
+   The following function(s) are used when upgrading &bdr; to a new version:
+
+   <table>
+    <title>Upgrade functions</title>
+    <tgroup cols="4">
+     <thead>
+      <row>
+       <entry>&udr;/&bdr;</entry>
+       <entry>Function</entry>
+       <entry>Return Type</entry>
+       <entry>Description</entry>
+      </row>
+     </thead>
+     <tbody>
+
+      <row>
+       <entry>&bdr;</entry>
+       <entry>
+        <indexterm>
+         <primary>bdr.bdr_upgrade_to_090</primary>
+        </indexterm>
+        <literal><function>bdr.bdr_upgrade_to_090(<replaceable>my_conninfo cstring</replaceable>, <replaceable>local_conninfo cstring</replaceable>, <replaceable>remote_conninfo cstring</replaceable>)</function></literal>
+       </entry>
+       <entry>void</entry>
+       <entry>Used during upgrade from 0.7.x or 0.8.x to &bdr; version 0.9.x. See <xref linkend="upgrade">.</entry>
+      </row>
+
+     </tbody>
+    </tgroup>
+   </table>
+  </para>
+
+ </sect1>
+
 </chapter>
diff --git a/doc/manual-upgrade.sgml b/doc/manual-upgrade.sgml
new file mode 100644 (file)
index 0000000..9765cc0
--- /dev/null
@@ -0,0 +1,15 @@
+<chapter id="upgrade" xreflabel="Upgrading BDR">
+ <title>Upgrading &bdr;</title>
+ <indexterm>
+  <primary>Upgrading BDR</primary>
+ </indexterm>
+
+ <para>
+  Documentation for the process of upgrading &bdr; from 0.7.x or 0.8.x to the current-at-time-of-writing 0.9.x release is currently under development.
+ </para>
+ <para>
+  See also: <xref linkend="functions-upgrade">.
+ </para>
+
+</chapter>