doc: Fix description of pg_replication_origin_oid() in error case
authorMichael Paquier
Wed, 19 Jan 2022 01:37:53 +0000 (10:37 +0900)
committerMichael Paquier
Wed, 19 Jan 2022 01:37:53 +0000 (10:37 +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 83e094e812adf004224bffd23d97a1b7691f8bce..98a6b264388826848710fd88da843bf7f58de6fa 100644 (file)
@@ -25091,7 +25091,8 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
        
        
         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, NULL is
+        returned.