Catalogs: pg_extension

The catalog pg_extension stores information about the installed extensions. See Section 36.15 for details about extensions. Table 50-22. pg_extension Columns Name Type References Description oid oid Row identifier (hidden attribute; must be explicitly selected) extname name Name of the extension extowner oid pg_authid.oid Owner of the extension extnamespace oid pg_namespace.oid Schema containing the extension's exported objects extrelocatable bool True if extension can be relocated to a

Catalogs: pg_event_trigger

The catalog pg_event_trigger stores event triggers. See Chapter 38 for more information. Table 50-21. pg_event_trigger Columns Name Type References Description evtname name Trigger name (must be unique) evtevent name Identifies the event for which this trigger fires evtowner oid pg_authid.oid Owner of the event trigger evtfoid oid pg_proc.oid The function to be called evtenabled char Controls in which session_replication_role modes the event trigger fires. O = trigger fires in "origin"

Catalogs: pg_foreign_server

The catalog pg_foreign_server stores foreign server definitions. A foreign server describes a source of external data, such as a remote server. Foreign servers are accessed via foreign-data wrappers. Table 50-24. pg_foreign_server Columns Name Type References Description oid oid Row identifier (hidden attribute; must be explicitly selected) srvname name Name of the foreign server srvowner oid pg_authid.oid Owner of the foreign server srvfdw oid pg_foreign_data_wrapper.oid OID of the forei

Catalogs: pg_foreign_data_wrapper

The catalog pg_foreign_data_wrapper stores foreign-data wrapper definitions. A foreign-data wrapper is the mechanism by which external data, residing on foreign servers, is accessed. Table 50-23. pg_foreign_data_wrapper Columns Name Type References Description oid oid Row identifier (hidden attribute; must be explicitly selected) fdwname name Name of the foreign-data wrapper fdwowner oid pg_authid.oid Owner of the foreign-data wrapper fdwhandler oid pg_proc.oid References a handler functi

Catalogs: pg_description

The catalog pg_description stores optional descriptions (comments) for each database object. Descriptions can be manipulated with the COMMENT command and viewed with psql's \d commands. Descriptions of many built-in system objects are provided in the initial contents of pg_description. See also pg_shdescription, which performs a similar function for descriptions involving objects that are shared across a database cluster. Table 50-19. pg_description Columns Name Type References Description ob

Catalogs: pg_enum

The pg_enum catalog contains entries showing the values and labels for each enum type. The internal representation of a given enum value is actually the OID of its associated row in pg_enum. Table 50-20. pg_enum Columns Name Type References Description oid oid Row identifier (hidden attribute; must be explicitly selected) enumtypid oid pg_type.oid The OID of the pg_type entry owning this enum value enumsortorder float4 The sort position of this enum value within its enum type enumlabel na

Catalogs: pg_depend

The catalog pg_depend records the dependency relationships between database objects. This information allows DROP commands to find which other objects must be dropped by DROP CASCADE or prevent dropping in the DROP RESTRICT case. See also pg_shdepend, which performs a similar function for dependencies involving objects that are shared across a database cluster. Table 50-18. pg_depend Columns Name Type References Description classid oid pg_class.oid The OID of the system catalog the dependent

Catalogs: pg_default_acl

The catalog pg_default_acl stores initial privileges to be assigned to newly created objects. Table 50-17. pg_default_acl Columns Name Type References Description oid oid Row identifier (hidden attribute; must be explicitly selected) defaclrole oid pg_authid.oid The OID of the role associated with this entry defaclnamespace oid pg_namespace.oid The OID of the namespace associated with this entry, or 0 if none defaclobjtype char Type of object this entry is for: r = relation (table, view),

Catalogs: pg_db_role_setting

The catalog pg_db_role_setting records the default values that have been set for run-time configuration variables, for each role and database combination. Unlike most system catalogs, pg_db_role_setting is shared across all databases of a cluster: there is only one copy of pg_db_role_setting per cluster, not one per database. Table 50-16. pg_db_role_setting Columns Name Type References Description setdatabase oid pg_database.oid The OID of the database the setting is applicable to, or zero if

Catalogs: pg_conversion

The catalog pg_conversion describes encoding conversion procedures. See CREATE CONVERSION for more information. Table 50-14. pg_conversion Columns Name Type References Description oid oid Row identifier (hidden attribute; must be explicitly selected) conname name Conversion name (unique within a namespace) connamespace oid pg_namespace.oid The OID of the namespace that contains this conversion conowner oid pg_authid.oid Owner of the conversion conforencoding int4 Source encoding ID cont