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
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.
    <table id="functions-snapshot-synchronization-table">
Sent via pgsql-hackers mailing list (
To make changes to your subscription:

Reply via email to