From: Michael Paquier Date: Wed, 19 Jan 2022 01:37:58 +0000 (+0900) Subject: doc: Fix description of pg_replication_origin_oid() in error case X-Git-Tag: REL_12_10~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fdb11ad458a789324edfb18984b7d4f5f4560a70;p=thirdparty%2Fpostgresql.git 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 --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index c2d8fd003d0..8b4283e3cc4 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -21095,8 +21095,9 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup()); oid - Lookup a replication origin by name and return the internal id. If no - corresponding replication origin is found an error is thrown. + Lookup a replication origin by name and return the internal ID. If + no such replication origin is found, NULL is + returned.