summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2022-01-19 01:37:40 +0000
committerMichael Paquier2022-01-19 01:37:40 +0000
commit44129c04323e7252f9a4064278ab049966dc4499 (patch)
tree2833fbd702804128dc07c014a2678568916265e4
parent5987feb70b5bbb1fc4e64d433f490df08d91dd45 (diff)
doc: Fix description of pg_replication_origin_oid() in error case
This function returns NULL if the replication origin given in input argument does not exist, contrary to what the docs described previously. Author: Ian Barwick Discussion: https://postgr.es/m/CAB8KJ=htJjBL=103URqjOxV2mqb4rjphDpMeKdyKq_QXt6h05w@mail.gmail.com Backpatch-through: 10
-rw-r--r--doc/src/sgml/func.sgml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index a270f89dfe9..90169a0ce72 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -26524,7 +26524,8 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
</para>
<para>
Looks up a replication origin by name and returns the internal ID. If
- no such replication origin is found an error is thrown.
+ no such replication origin is found, <literal>NULL</literal> is
+ returned.
</para></entry>
</row>