Skip to content

Commit d696e63

Browse files
committed
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
1 parent 92e6c1c commit d696e63

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19619,8 +19619,9 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
1961919619
<type>oid</type>
1962019620
</entry>
1962119621
<entry>
19622-
Lookup a replication origin by name and return the internal id. If no
19623-
corresponding replication origin is found an error is thrown.
19622+
Lookup a replication origin by name and return the internal ID. If
19623+
no such replication origin is found, <literal>NULL</literal> is
19624+
returned.
1962419625
</entry>
1962519626
</row>
1962619627

0 commit comments

Comments
 (0)