diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 464e9c1c16..8c4eef9c44 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -19619,8 +19619,9 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
oid
- 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, NULL is
+ returned.