↑↓ 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

pg_get_userbyid

Read the PG 18 manual

Returns a role's name given its OID.

Reading PG 18current·documented in 26 of 27 versions, 7.2 to 20

Signatures & examples

pg_get_userbyid ( role oid ) → name
Returns a role's name given its OID.
Version history 7
  1. 12 → 13 changed
  2. 8.3 → 8.4 changed
  3. 8.0 → 8.1 changed
  4. 7.4 → 8.0 changed
  5. 7.3 → 7.4 changed
  6. 7.2 → 7.3 changed
  7. 7.1 → 7.2 added

Definition snapshot: b7bd9cda · English manual source