select open change scope Open full search

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

REFERENCE / 158 RELATIONS

System Catalogs

Compare versions ↗

Catalogs and views, their columns, and how their structures change.

158 of 158 relationsFilled cells = documented or sourced presence. Select a cell to read that version.
System CatalogsVersion coverage
9.09.19.29.39.49.59.61011121314151617181920
pg_stat_progress_analyzeProgress reporting

Whenever ANALYZE is running, the pg_stat_progress_analyze view will contain a row for each backend that is currently running that command. The tables below describe the information that will be reported and provide information about how to interpret…

13 – 20
pg_stat_progress_basebackupProgress reporting

Whenever an application like pg_basebackup is taking a base backup, the pg_stat_progress_basebackup view will contain a row for each WAL sender process that is currently running the BASE_BACKUP replication command and streaming the backup. The table…

13 – 20
pg_stat_progress_clusterProgress reporting

Whenever CLUSTER or VACUUM FULL is running, the pg_stat_progress_cluster view will contain a row for each backend that is currently running either command. The tables below describe the information that will be reported and provide information about…

12 – 20
pg_stat_progress_copyProgress reporting

Whenever COPY is running, the pg_stat_progress_copy view will contain one row for each backend that is currently running a COPY command. The table below describes the information that will be reported and provides information about how to interpret …

14 – 20
pg_stat_progress_create_indexProgress reporting

Whenever CREATE INDEX or REINDEX is running, the pg_stat_progress_create_index view will contain one row for each backend that is currently creating indexes. The tables below describe the information that will be reported and provide information abo…

12 – 20
pg_stat_progress_data_checksumsProgress reporting

When data checksums are being enabled or disabled on a running cluster, the pg_stat_progress_data_checksums view will contain a row for the launcher process.

19 – 20 · No PG 18 snapshot
pg_stat_progress_repackProgress reporting

Whenever REPACK, CLUSTER, or VACUUM FULL is running, the pg_stat_progress_repack view will contain a row for each backend that is currently running one of these commands.

19 – 20 · No PG 18 snapshot
pg_stat_progress_vacuumProgress reporting

Whenever VACUUM is running, the pg_stat_progress_vacuum view will contain one row for each backend (including autovacuum worker processes) that is currently vacuuming. The tables below describe the information that will be reported and provide infor…

9.6 – 20
pg_stat_activityStatistics views

The pg_stat_activity view will have one row per server process, showing information related to the current activity of that process.

9.0 – 20
pg_stat_all_indexesStatistics views

The pg_stat_all_indexes view will contain one row for each index in the current database, showing statistics about accesses to that specific index. The pg_stat_user_indexes and pg_stat_sys_indexes views contain the same information, but filtered to …

9.0 – 20
pg_stat_all_tablesStatistics views

The pg_stat_all_tables view will contain one row for each table in the current database (including TOAST tables), showing statistics about accesses to that specific table. The pg_stat_user_tables and pg_stat_sys_tables views contain the same informa…

9.0 – 20
pg_stat_archiverStatistics views

The pg_stat_archiver view will always have a single row, containing data about the archiver process of the cluster.

9.4 – 20
pg_stat_autovacuum_scoresStatistics views

The pg_stat_autovacuum_scores view will contain one row for each table in the current database (including TOAST tables), showing the current autovacuum scores for that specific table.

19 – 20 · No PG 18 snapshot
pg_stat_bgwriterStatistics views

The pg_stat_bgwriter view will always have a single row, containing data about the background writer of the cluster.

9.0 – 20
pg_stat_checkpointerStatistics views

The pg_stat_checkpointer view will always have a single row, containing data about the checkpointer process of the cluster.

17 – 20
pg_stat_databaseStatistics views

The pg_stat_database view will contain one row for each database in the cluster, plus one for shared objects, showing database-wide statistics.

9.0 – 20
pg_stat_database_conflictsStatistics views

The pg_stat_database_conflicts view will contain one row per database, showing database-wide statistics about query cancels occurring due to conflicts with recovery on standby servers. This view will only contain information on standby servers, sinc…

9.1 – 20
pg_stat_gssapiStatistics views

The pg_stat_gssapi view will contain one row per backend, showing information about GSSAPI usage on this connection. It can be joined to pg_stat_activity or pg_stat_replication on the pid column to get more details about the connection.

12 – 20
pg_stat_ioStatistics views

The pg_stat_io view will contain one row for each combination of backend type, target I/O object, and I/O context, showing cluster-wide I/O statistics. Combinations which do not make sense are omitted. Currently, I/O on relations (e.g. tables, index…

16 – 20
pg_stat_kind_infoStatistics views

The pg_stat_kind_info view contains one row for each registered statistics kind, including both built-in and custom kinds.

20 – 20 · No PG 18 snapshot
pg_stat_lockStatistics views

The pg_stat_lock view will contain one row for each lock type, showing cluster-wide locks statistics.

19 – 20 · No PG 18 snapshot
pg_stat_recoveryStatistics views

The pg_stat_recovery view will contain at most one row, showing statistics about the recovery state of the startup process.

19 – 20 · No PG 18 snapshot
pg_stat_recovery_prefetchStatistics views

The pg_stat_recovery_prefetch view will contain only one row. The columns wal_distance, block_distance and io_depth show current values, and the other columns show cumulative counters that can be reset with the pg_stat_reset_shared function.

15 – 20
pg_stat_replicationStatistics views

The pg_stat_replication view will contain one row per WAL sender process, showing statistics about replication to that sender's connected standby server. Only directly connected standbys are listed; no information is available about downstream stand…

9.1 – 20
pg_stat_replication_slotsStatistics views

The pg_stat_replication_slots view will contain one row per logical replication slot, showing statistics about its usage.

14 – 20
pg_stat_slruStatistics views

PostgreSQL accesses certain on-disk information via SLRU (simple least-recently-used) caches. The pg_stat_slru view will contain one row for each tracked SLRU cache, showing statistics about access to cached pages. For each SLRU cache that's part of…

13 – 20
pg_stat_sslStatistics views

The pg_stat_ssl view will contain one row per backend or WAL sender process, showing statistics about SSL usage on this connection. It can be joined to pg_stat_activity or pg_stat_replication on the pid column to get more details about the connectio…

9.5 – 20
pg_stat_subscriptionStatistics views

The pg_stat_subscription view will contain one row per subscription for main worker (with null PID if the worker is not running), and additional rows for workers handling the initial data copy of the subscribed tables.

10 – 20
pg_stat_subscription_statsStatistics views

The pg_stat_subscription_stats view will contain one row per subscription.

15 – 20
pg_stat_sys_indexesStatistics views

The pg_stat_all_indexes view will contain one row for each index in the current database, showing statistics about accesses to that specific index. The pg_stat_user_indexes and pg_stat_sys_indexes views contain the same information, but filtered to …

9.0 – 20
pg_stat_sys_tablesStatistics views

The pg_stat_all_tables view will contain one row for each table in the current database (including TOAST tables), showing statistics about accesses to that specific table. The pg_stat_user_tables and pg_stat_sys_tables views contain the same informa…

9.0 – 20
pg_stat_user_functionsStatistics views

The pg_stat_user_functions view will contain one row for each tracked function, showing statistics about executions of that function. The track_functions parameter controls exactly which functions are tracked.

9.0 – 20
pg_stat_user_indexesStatistics views

The pg_stat_all_indexes view will contain one row for each index in the current database, showing statistics about accesses to that specific index. The pg_stat_user_indexes and pg_stat_sys_indexes views contain the same information, but filtered to …

9.0 – 20
pg_stat_user_tablesStatistics views

The pg_stat_all_tables view will contain one row for each table in the current database (including TOAST tables), showing statistics about accesses to that specific table. The pg_stat_user_tables and pg_stat_sys_tables views contain the same informa…

9.0 – 20
pg_stat_walStatistics views

The pg_stat_wal view will always have a single row, containing data about WAL activity of the cluster.

14 – 20
pg_stat_wal_receiverStatistics views

The pg_stat_wal_receiver view will contain only one row, showing statistics about the WAL receiver from that receiver's connected server.

9.6 – 20
pg_stat_xact_all_tablesStatistics views

A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables, pg_stat_xact_sys_tables, pg_stat_xact_user_tables, and pg_stat_xact_user_functions. These numbers do not act as…

9.1 – 20
pg_stat_xact_sys_tablesStatistics views

A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables, pg_stat_xact_sys_tables, pg_stat_xact_user_tables, and pg_stat_xact_user_functions. These numbers do not act as…

9.1 – 20
pg_stat_xact_user_functionsStatistics views

A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables, pg_stat_xact_sys_tables, pg_stat_xact_user_tables, and pg_stat_xact_user_functions. These numbers do not act as…

9.1 – 20
pg_stat_xact_user_tablesStatistics views

A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables, pg_stat_xact_sys_tables, pg_stat_xact_user_tables, and pg_stat_xact_user_functions. These numbers do not act as…

9.1 – 20
pg_statio_all_indexesStatistics views

The pg_statio_all_indexes view will contain one row for each index in the current database, showing statistics about I/O on that specific index. The pg_statio_user_indexes and pg_statio_sys_indexes views contain the same information, but filtered to…

9.0 – 20
pg_statio_all_sequencesStatistics views

The pg_statio_all_sequences view will contain one row for each sequence in the current database, showing statistics about I/O on that specific sequence.

9.0 – 20
pg_statio_all_tablesStatistics views

The pg_statio_all_tables view will contain one row for each table in the current database (including TOAST tables), showing statistics about I/O on that specific table. The pg_statio_user_tables and pg_statio_sys_tables views contain the same inform…

9.0 – 20
pg_statio_sys_indexesStatistics views

The pg_statio_all_indexes view will contain one row for each index in the current database, showing statistics about I/O on that specific index. The pg_statio_user_indexes and pg_statio_sys_indexes views contain the same information, but filtered to…

9.0 – 20
pg_statio_sys_sequencesStatistics views

Same as pg_statio_all_sequences, except that only system sequences are shown. (Presently, no system sequences are defined, so this view is always empty.)

9.0 – 19
pg_statio_sys_tablesStatistics views

The pg_statio_all_tables view will contain one row for each table in the current database (including TOAST tables), showing statistics about I/O on that specific table. The pg_statio_user_tables and pg_statio_sys_tables views contain the same inform…

9.0 – 20
pg_statio_user_indexesStatistics views

The pg_statio_all_indexes view will contain one row for each index in the current database, showing statistics about I/O on that specific index. The pg_statio_user_indexes and pg_statio_sys_indexes views contain the same information, but filtered to…

9.0 – 20
pg_statio_user_sequencesStatistics views

Same as pg_statio_all_sequences, except that only user sequences are shown.

9.0 – 19
pg_statio_user_tablesStatistics views

The pg_statio_all_tables view will contain one row for each table in the current database (including TOAST tables), showing statistics about I/O on that specific table. The pg_statio_user_tables and pg_statio_sys_tables views contain the same inform…

9.0 – 20
pg_aggregateSystem catalogs

The catalog pg_aggregate stores information about aggregate functions. An aggregate function is a function that operates on a set of values (typically one column from each row that matches a query condition) and returns a single value computed from …

9.0 – 20
pg_amSystem catalogs

The catalog pg_am stores information about relation access methods. There is one row for each access method supported by the system. Currently, only tables and indexes have access methods. The requirements for table and index access methods are disc…

9.0 – 20
pg_amopSystem catalogs

The catalog pg_amop stores information about operators associated with access method operator families. There is one row for each operator that is a member of an operator family. A family member can be either a search operator or an ordering operato…

9.0 – 20
pg_amprocSystem catalogs

The catalog pg_amproc stores information about support functions associated with access method operator families. There is one row for each support function belonging to an operator family.

9.0 – 20
pg_attrdefSystem catalogs

The catalog pg_attrdef stores column default expressions and generation expressions. The main information about columns is stored in pg_attribute. Only columns for which a default expression or generation expression has been explicitly set will have…

9.0 – 20
pg_attributeSystem catalogs

The catalog pg_attribute stores information about table columns. There will be exactly one pg_attribute row for every column in every table in the database. (There will also be attribute entries for indexes, and indeed all objects that have pg_class…

9.0 – 20
pg_auth_membersSystem catalogs

The catalog pg_auth_members shows the membership relations between roles. Any non-circular set of relationships is allowed. Because user identities are cluster-wide, pg_auth_members is shared across all databases of a cluster: there is only one copy…

9.0 – 20
pg_authidSystem catalogs

The catalog pg_authid contains information about database authorization identifiers (roles). A role subsumes the concepts of “users” and “groups”. A user is essentially just a role with the rolcanlogin flag set. Any role (with or without rolcanlogin…

9.0 – 20
pg_castSystem catalogs

The catalog pg_cast stores data type conversion paths, both built-in and user-defined. It should be noted that pg_cast does not represent every type conversion that the system knows how to perform; only those that cannot be deduced from some generic…

9.0 – 20
pg_classSystem catalogs

The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST…

9.0 – 20
pg_collationSystem catalogs

The catalog pg_collation describes the available collations, which are essentially mappings from an SQL name to operating system locale categories. See Section 23.2 for more information.

9.1 – 20
pg_constraintSystem catalogs

The catalog pg_constraint stores check, not-null, primary key, unique, foreign key, and exclusion constraints on tables. (Column constraints are not treated specially. Every column constraint is equivalent to some table constraint.) User-defined con…

9.0 – 20
pg_conversionSystem catalogs

The catalog pg_conversion describes encoding conversion functions. See CREATE CONVERSION for more information.

9.0 – 20
pg_databaseSystem catalogs

The catalog pg_database stores information about the available databases. Databases are created with the CREATE DATABASE command. Consult Chapter 22 for details about the meaning of some of the parameters. Unlike most system catalogs, pg_database is…

9.0 – 20
pg_db_role_settingSystem catalogs

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: t…

9.0 – 20
pg_default_aclSystem catalogs

The catalog pg_default_acl stores initial privileges to be assigned to newly created objects.

9.0 – 20
pg_dependSystem catalogs

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_shdepen…

9.0 – 20
pg_descriptionSystem catalogs

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 th…

9.0 – 20
pg_enumSystem catalogs

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.

9.0 – 20
pg_event_triggerSystem catalogs

The catalog pg_event_trigger stores event triggers. See Chapter 38 for more information.

9.3 – 20
pg_extensionSystem catalogs

The catalog pg_extension stores information about the installed extensions. See Section 36.17 for details about extensions.

9.1 – 20
pg_foreign_data_wrapperSystem catalogs

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.

9.0 – 20
pg_foreign_serverSystem catalogs

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.

9.0 – 20
pg_foreign_tableSystem catalogs

The catalog pg_foreign_table contains auxiliary information about foreign tables. A foreign table is primarily represented by a pg_class entry, just like a regular table. Its pg_foreign_table entry contains the information that is pertinent only to …

9.1 – 20
pg_indexSystem catalogs

The catalog pg_index contains part of the information about indexes. The rest is mostly in pg_class.

9.0 – 20
pg_inheritsSystem catalogs

The catalog pg_inherits records information about table and index inheritance hierarchies. There is one entry for each direct parent-child table or index relationship in the database. (Indirect inheritance can be determined by following chains of en…

9.0 – 20
pg_init_privsSystem catalogs

The catalog pg_init_privs records information about the initial privileges of objects in the system. There is one entry for each object in the database which has a non-default (non-NULL) initial set of privileges. Objects can have initial privileges…

9.6 – 20
pg_languageSystem catalogs

The catalog pg_language registers languages in which you can write functions or stored procedures. See CREATE LANGUAGE and Chapter 40 for more information about language handlers.

9.0 – 20
pg_largeobjectSystem catalogs

The catalog pg_largeobject holds the data making up “large objects”. A large object is identified by an OID assigned when it is created. Each large object is broken into segments or “pages” small enough to be conveniently stored as rows in pg_largeo…

9.0 – 20
pg_largeobject_metadataSystem catalogs

The catalog pg_largeobject_metadata holds metadata associated with large objects. The actual large object data is stored in pg_largeobject.

9.0 – 20
pg_namespaceSystem catalogs

The catalog pg_namespace stores namespaces. A namespace is the structure underlying SQL schemas: each namespace can have a separate collection of relations, types, etc. without name conflicts.

9.0 – 20
pg_opclassSystem catalogs

The catalog pg_opclass defines index access method operator classes. Each operator class defines semantics for index columns of a particular data type and a particular index access method. An operator class essentially specifies that a particular op…

9.0 – 20
pg_operatorSystem catalogs

The catalog pg_operator stores information about operators. See CREATE OPERATOR and Section 36.14 for more information.

9.0 – 20
pg_opfamilySystem catalogs

The catalog pg_opfamily defines operator families. Each operator family is a collection of operators and associated support routines that implement the semantics specified for a particular index access method. Furthermore, the operators in a family …

9.0 – 20
pg_parameter_aclSystem catalogs

The catalog pg_parameter_acl records configuration parameters for which privileges have been granted to one or more roles. No entry is made for parameters that have default privileges. Unlike most system catalogs, pg_parameter_acl is shared across a…

15 – 20
pg_partitioned_tableSystem catalogs

The catalog pg_partitioned_table stores information about how tables are partitioned.

10 – 20
pg_pltemplateSystem catalogs

The catalog pg_pltemplate stores “template” information for procedural languages.

9.0 – 12 · No PG 18 snapshot
pg_policySystem catalogs

The catalog pg_policy stores row-level security policies for tables. A policy includes the kind of command that it applies to (possibly all commands), the roles that it applies to, the expression to be added as a security-barrier qualification to qu…

9.5 – 20
pg_procSystem catalogs

The catalog pg_proc stores information about functions, procedures, aggregate functions, and window functions (collectively also known as routines). See CREATE FUNCTION, CREATE PROCEDURE, and Section 36.3 for more information. If prokind indicates t…

9.0 – 20
pg_propgraph_elementSystem catalogs

The catalog pg_propgraph_element stores information about the vertices and edges of a property graph, collectively called the elements of the property graph.

19 – 19 · No PG 18 snapshot
pg_propgraph_element_labelSystem catalogs

The catalog pg_propgraph_element_label stores information about which labels apply to which elements.

19 – 19 · No PG 18 snapshot
pg_propgraph_labelSystem catalogs

The catalog pg_propgraph_label stores information about the labels in a property graph.

19 – 19 · No PG 18 snapshot
pg_propgraph_label_propertySystem catalogs

The catalog pg_propgraph_label_property stores information about the properties in a property graph that are specific to a label.

19 – 19 · No PG 18 snapshot
pg_propgraph_propertySystem catalogs

The catalog pg_propgraph_property stores information about the properties in a property graph.

19 – 19 · No PG 18 snapshot
pg_publicationSystem catalogs

The catalog pg_publication contains all publications created in the database. For more on publications see Section 29.1.

10 – 20
pg_publication_namespaceSystem catalogs

The catalog pg_publication_namespace contains the mapping between schemas and publications in the database. This is a many-to-many mapping.

15 – 20
pg_publication_relSystem catalogs

The catalog pg_publication_rel contains the mapping between relations and publications in the database. This is a many-to-many mapping. See also Section 53.18 for a more user-friendly view of this information.

10 – 20
pg_rangeSystem catalogs

The catalog pg_range stores information about range types. This is in addition to the types' entries in pg_type.

9.2 – 20
pg_replication_originSystem catalogs

The pg_replication_origin catalog contains all replication origins created. For more on replication origins see Chapter 48. Unlike most system catalogs, pg_replication_origin is shared across all databases of a cluster: there is only one copy of pg_…

9.5 – 20
pg_rewriteSystem catalogs

The catalog pg_rewrite stores rewrite rules for tables and views.

9.0 – 20
pg_seclabelSystem catalogs

The catalog pg_seclabel stores security labels on database objects. Security labels can be manipulated with the SECURITY LABEL command. For an easier way to view security labels, see Section 53.23. See also pg_shseclabel, which performs a similar fu…

9.1 – 20
pg_sequenceSystem catalogs

The catalog pg_sequence contains information about sequences. Some of the information about sequences, such as the name and the schema, is in pg_class

10 – 20
pg_shdependSystem catalogs

The catalog pg_shdepend records the dependency relationships between database objects and shared objects, such as roles. This information allows PostgreSQL to ensure that those objects are unreferenced before attempting to delete them. See also pg_d…

9.0 – 20
pg_shdescriptionSystem catalogs

The catalog pg_shdescription stores optional descriptions (comments) for shared database objects. Descriptions can be manipulated with the COMMENT command and viewed with psql's \d commands. See also pg_description, which performs a similar function…

9.0 – 20
pg_shseclabelSystem catalogs

The catalog pg_shseclabel stores security labels on shared database objects. Security labels can be manipulated with the SECURITY LABEL command. For an easier way to view security labels, see Section 53.23. See also pg_seclabel, which performs a sim…

9.2 – 20
pg_statisticSystem catalogs

The catalog pg_statistic stores statistical data about the contents of the database. Entries are created by ANALYZE and subsequently used by the query planner. Note that all the statistical data is inherently approximate, even assuming that it is up…

9.0 – 20
pg_statistic_extSystem catalogs

The catalog pg_statistic_ext holds definitions of extended planner statistics. Each row in this catalog corresponds to a statistics object created with CREATE STATISTICS.

10 – 20
pg_statistic_ext_dataSystem catalogs

The catalog pg_statistic_ext_data holds data for extended planner statistics defined in pg_statistic_ext. Each row in this catalog corresponds to a statistics object created with CREATE STATISTICS. Normally there is one entry, with stxdinherit = fal…

12 – 20
pg_subscriptionSystem catalogs

The catalog pg_subscription contains all existing logical replication subscriptions. For more information about logical replication see Chapter 29. Unlike most system catalogs, pg_subscription is shared across all databases of a cluster: there is on…

10 – 20
pg_subscription_relSystem catalogs

The catalog pg_subscription_rel contains the state for each replicated relation in each subscription. This is a many-to-many mapping. This catalog only contains tables known to the subscription after running either CREATE SUBSCRIPTION or ALTER SUBSC…

10 – 20
pg_tablespaceSystem catalogs

The catalog pg_tablespace stores information about the available tablespaces. Tables can be placed in particular tablespaces to aid administration of disk layout. Unlike most system catalogs, pg_tablespace is shared across all databases of a cluster…

9.0 – 20
pg_transformSystem catalogs

The catalog pg_transform stores information about transforms, which are a mechanism to adapt data types to procedural languages. See CREATE TRANSFORM for more information.

9.5 – 20
pg_triggerSystem catalogs

The catalog pg_trigger stores triggers on tables and views. See CREATE TRIGGER for more information.

9.0 – 20
pg_ts_configSystem catalogs

The pg_ts_config catalog contains entries representing text search configurations. A configuration specifies a particular text search parser and a list of dictionaries to use for each of the parser's output token types. The parser is shown in the pg…

9.0 – 20
pg_ts_config_mapSystem catalogs

The pg_ts_config_map catalog contains entries showing which text search dictionaries should be consulted, and in what order, for each output token type of each text search configuration's parser. PostgreSQL's text search features are described at le…

9.0 – 20
pg_ts_dictSystem catalogs

The pg_ts_dict catalog contains entries defining text search dictionaries. A dictionary depends on a text search template, which specifies all the implementation functions needed; the dictionary itself provides values for the user-settable parameter…

9.0 – 20
pg_ts_parserSystem catalogs

The pg_ts_parser catalog contains entries defining text search parsers. A parser is responsible for splitting input text into lexemes and assigning a token type to each lexeme. Since a parser must be implemented by C-language-level functions, creati…

9.0 – 20
pg_ts_templateSystem catalogs

The pg_ts_template catalog contains entries defining text search templates. A template is the implementation skeleton for a class of text search dictionaries. Since a template must be implemented by C-language-level functions, creation of new templa…

9.0 – 20
pg_typeSystem catalogs

The catalog pg_type stores information about data types. Base types and enum types (scalar types) are created with CREATE TYPE, and domains with CREATE DOMAIN. A composite type is automatically created for each table in the database, to represent th…

9.0 – 20
pg_user_mappingSystem catalogs

The catalog pg_user_mapping stores the mappings from local user to remote. Access to this catalog is restricted from normal users, use the view pg_user_mappings instead.

9.0 – 20
pg_aiosSystem views

The pg_aios view lists all Asynchronous I/O handles that are currently in-use. An I/O handle is used to reference an I/O operation that is being prepared, executed or is in the process of completing. pg_aios contains one row for each I/O handle. Thi…

18 – 20
pg_available_extension_versionsSystem views

The pg_available_extension_versions view lists the specific extension versions that are available for installation. See also the pg_extension catalog, which shows the extensions currently installed.

9.1 – 20
pg_available_extensionsSystem views

The pg_available_extensions view lists the extensions that are available for installation. See also the pg_extension catalog, which shows the extensions currently installed.

9.1 – 20
pg_backend_memory_contextsSystem views

The view pg_backend_memory_contexts displays all the memory contexts of the server process attached to the current session. pg_backend_memory_contexts contains one row for each memory context.

14 – 20
pg_configSystem views

The view pg_config describes the compile-time configuration parameters of the currently installed version of PostgreSQL. It is intended, for example, to be used by software packages that want to interface to PostgreSQL to facilitate finding the requ…

9.6 – 20
pg_cursorsSystem views

The pg_cursors view lists the cursors that are currently available. Cursors can be defined in several ways: The pg_cursors view displays cursors created by any of these means. Cursors only exist for the duration of the transaction that defines them,…

9.0 – 20
pg_dsm_registry_allocationsSystem views

The pg_dsm_registry_allocations view shows shared memory allocations tracked in the dynamic shared memory (DSM) registry.

19 – 20 · No PG 18 snapshot
pg_file_settingsSystem views

The view pg_file_settings provides a summary of the contents of the server's configuration file(s). A row appears in this view for each “name = value” entry appearing in the files, with annotations indicating whether the value could be applied succe…

9.5 – 20
pg_groupSystem views

The view pg_group exists for backwards compatibility: it emulates a catalog that existed in PostgreSQL before version 8.1. It shows the names and members of all roles that are marked as not rolcanlogin, which is an approximation to the set of roles …

9.0 – 20
pg_hba_file_rulesSystem views

The view pg_hba_file_rules provides a summary of the contents of the client authentication configuration file, pg_hba.conf. A row appears in this view for each non-empty, non-comment line in the file, with annotations indicating whether the rule cou…

10 – 20
pg_ident_file_mappingsSystem views

The view pg_ident_file_mappings provides a summary of the contents of the client user name mapping configuration file, pg_ident.conf. A row appears in this view for each non-empty, non-comment line in the file, with annotations indicating whether th…

15 – 20
pg_indexesSystem views

The view pg_indexes provides access to useful information about each index in the database.

9.0 – 20
pg_locksSystem views

The view pg_locks provides access to information about the locks held by active processes within the database server. See Chapter 13 for more discussion of locking. pg_locks contains one row per active lockable object, requested lock mode, and relev…

9.0 – 20
pg_matviewsSystem views

The view pg_matviews provides access to useful information about each materialized view in the database.

9.3 – 20
pg_policiesSystem views

The view pg_policies provides access to useful information about each row-level security policy in the database.

9.5 – 20
pg_prepared_statementsSystem views

The pg_prepared_statements view displays all the prepared statements that are available in the current session. See PREPARE for more information about prepared statements. pg_prepared_statements contains one row for each prepared statement. Rows are…

9.0 – 20
pg_prepared_xactsSystem views

The view pg_prepared_xacts displays information about transactions that are currently prepared for two-phase commit (see PREPARE TRANSACTION for details). pg_prepared_xacts contains one row per prepared transaction. An entry is removed when the tran…

9.0 – 20
pg_publication_sequencesSystem views

The view pg_publication_sequences provides information about the mapping between publications and sequences.

19 – 20 · No PG 18 snapshot
pg_publication_tablesSystem views

The view pg_publication_tables provides information about the mapping between publications and information of tables they contain. Unlike the underlying catalog pg_publication_rel, this view expands publications defined as FOR ALL TABLES and FOR TAB…

10 – 20
pg_replication_origin_statusSystem views

The pg_replication_origin_status view contains information about how far replay for a certain origin has progressed. For more on replication origins see Chapter 48.

9.5 – 20
pg_replication_slotsSystem views

The pg_replication_slots view provides a listing of all replication slots that currently exist on the database cluster, along with their current state. For more on replication slots, see Section 26.2.6 and Chapter 47.

9.4 – 20
pg_rolesSystem views

The view pg_roles provides access to information about database roles. This is simply a publicly readable view of pg_authid that blanks out the password field.

9.0 – 20
pg_rulesSystem views

The view pg_rules provides access to useful information about query rewrite rules.

9.0 – 20
pg_seclabelsSystem views

The view pg_seclabels provides information about security labels. It as an easier-to-query version of the pg_seclabel catalog.

9.1 – 20
pg_sequencesSystem views

The view pg_sequences provides access to useful information about each sequence in the database.

10 – 20
pg_settingsSystem views

The view pg_settings provides access to run-time parameters of the server. It is essentially an alternative interface to the SHOW and SET commands. It also provides access to some facts about each parameter that are not directly available from SHOW,…

9.0 – 20
pg_shadowSystem views

The view pg_shadow exists for backwards compatibility: it emulates a catalog that existed in PostgreSQL before version 8.1. It shows properties of all roles that are marked as rolcanlogin in pg_authid. The name stems from the fact that this table sh…

9.0 – 20
pg_shmem_allocationsSystem views

The pg_shmem_allocations view shows allocations made from the server's main shared memory segment. This includes both memory allocated by PostgreSQL itself and memory allocated by extensions using the mechanisms detailed in Section 36.10.11. Note th…

13 – 20
pg_shmem_allocations_numaSystem views

The pg_shmem_allocations_numa shows how shared memory allocations in the server's main shared memory segment are distributed across NUMA nodes. This includes both memory allocated by PostgreSQL itself and memory allocated by extensions using the mec…

18 – 20
pg_statsSystem views

The view pg_stats provides access to the information stored in the pg_statistic catalog. This view allows access only to rows of pg_statistic that correspond to tables the user has permission to read, and therefore it is safe to allow public read ac…

9.0 – 20
pg_stats_extSystem views

The view pg_stats_ext provides access to information about each extended statistics object in the database, combining information stored in the pg_statistic_ext and pg_statistic_ext_data catalogs. This view allows access only to rows of pg_statistic…

12 – 20
pg_stats_ext_exprsSystem views

The view pg_stats_ext_exprs provides access to information about all expressions included in extended statistics objects, combining information stored in the pg_statistic_ext and pg_statistic_ext_data catalogs. This view allows access only to rows o…

14 – 20
pg_tablesSystem views

The view pg_tables provides access to useful information about each table in the database.

9.0 – 20
pg_timezone_abbrevsSystem views

The view pg_timezone_abbrevs provides a list of time zone abbreviations that are currently recognized by the datetime input routines. The contents of this view change when the TimeZone or timezone_abbreviations run-time parameters are modified.

9.0 – 20
pg_timezone_namesSystem views

The view pg_timezone_names provides a list of time zone names that are recognized by SET TIMEZONE, along with their associated abbreviations, UTC offsets, and daylight-savings status. (Technically, PostgreSQL does not use UTC because leap seconds ar…

9.0 – 20
pg_userSystem views

The view pg_user provides access to information about database users. This is simply a publicly readable view of pg_shadow that blanks out the password field.

9.0 – 20
pg_user_mappingsSystem views

The view pg_user_mappings provides access to information about user mappings. This is essentially a publicly readable view of pg_user_mapping that leaves out the options field if the user has no rights to use it.

9.0 – 20
pg_viewsSystem views

The view pg_views provides access to useful information about each view in the database.

9.0 – 20
pg_wait_eventsSystem views

The view pg_wait_events provides description about the wait events.

17 – 20