pg_export_snapshot doc

Started by Tatsuo Ishiialmost 9 years ago1 messages
#1Tatsuo Ishii
ishii@sraoss.co.jp
1 attachment(s)

pg_export_snapshot() cannot be used during recovery (i.e. on standby
servers), but it's not documented. IMO this is a bug and should be
fixed. Patch attached.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp

Attachments:

pg_export_snapshot.patchtext/x-patch; charset=us-asciiDownload
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index cb0a36a..9923e67 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -18778,6 +18778,7 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
     Snapshots are exported with the <function>pg_export_snapshot</> function,
     shown in <xref linkend="functions-snapshot-synchronization-table">, and
     imported with the <xref linkend="sql-set-transaction"> command.
+    This function cannot be used during recovery.
    </para>
 
    <table id="functions-snapshot-synchronization-table">