↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Information Functions And Operators

to_regnamespace

Read the PG 18 manual

Translates a textual schema name to its OID.

Reading PG 18current·documented in 13 of 27 versions, 9.5 to 20

Signatures & examples

to_regnamespace ( text ) → regnamespace
Translates a textual schema name to its OID. A similar result is obtained by casting the string to type regnamespace (see Section 8.19); however, this function will return NULL rather than throwing an error if the name is not found.
Version history 3
  1. 15 → 16 changed
  2. 12 → 13 changed
  3. 9.4 → 9.5 added

Definition snapshot: b7bd9cda · English manual source