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

current_catalog

Read the PG 18 manual

Returns the name of the current database.

Reading PG 18current·documented in 19 of 27 versions, 8.4 to 20

Signatures & examples

current_catalog → name
Returns the name of the current database. (Databases are called “catalogs” in the SQL standard, so current_catalog is the standard's spelling.)
Version history 3
  1. 12 → 13 changed
  2. 9.6 → 10 changed
  3. 8.3 → 8.4 added

Definition snapshot: b7bd9cda · English manual source