]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: Fix description of pg_replication_origin_oid() in error case
authorMichael Paquier <michael@paquier.xyz>
Wed, 19 Jan 2022 01:38:02 +0000 (10:38 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 19 Jan 2022 01:38:02 +0000 (10:38 +0900)
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

doc/src/sgml/func.sgml

index 464e9c1c1618999414e6a4eb4a15d33db1a277d0..8c4eef9c44736a854254147fb90f4e8f39a2f3c1 100644 (file)
@@ -19619,8 +19619,9 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
         <type>oid</type>
        </entry>
        <entry>
-        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, <literal>NULL</literal> is
+        returned.
        </entry>
       </row>