postgres.git / summary / log / commit / refs

commit    cb91cb8aaccede6c0b4bde2be79742dfc4b996c0
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Wed Jan 19 01:38:06 2022 +0000
First released in: 15.0, 10.20, 11.15, 12.10, 13.6, 14.2

    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


doc/src/sgml/func.sgml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 39904dd8feb..4c7ff22d6be 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -19442,8 +19442,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> [parent: 62bfa554b285]