Skip to content

Commit 44129c0

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 5987feb commit 44129c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/src/sgml/func.sgml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26524,7 +26524,8 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
2652426524
</para>
2652526525
<para>
2652626526
Looks up a replication origin by name and returns the internal ID. If
26527-
no such replication origin is found an error is thrown.
26527+
no such replication origin is found, <literal>NULL</literal> is
26528+
returned.
2652826529
</para></entry>
2652926530
</row>
2653026531

0 commit comments

Comments
 (0)