aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-01-19 10:37:53 +0900
committerMichael Paquier <michael@paquier.xyz>2022-01-19 10:37:53 +0900
commit3204b8a7affc7277ae4eebc3f53c566f859d1815 (patch)
tree16486359a347c7a4d7a694b04e54071b77712112
parent639a9293d4cbf6bdfcc641f335e2c5a2359cce75 (diff)
downloadpostgresql-3204b8a7affc7277ae4eebc3f53c566f859d1815.tar.gz
postgresql-3204b8a7affc7277ae4eebc3f53c566f859d1815.zip
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 83e094e812a..98a6b264388 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -25091,7 +25091,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>