diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index fcadba331db..f4653b190c5 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -388,178 +388,250 @@ <structname>pg_aggregate</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - aggfnoid - regproc - pg_proc.oid - pg_proc OID of the aggregate function + + aggfnoid regproc + (references pg_proc.oid) + + + pg_proc OID of the aggregate function + + - aggkind - char - - Aggregate kind: + + aggkind char + + + Aggregate kind: n for normal aggregates, o for ordered-set aggregates, or h for hypothetical-set aggregates - + + - aggnumdirectargs - int2 - - Number of direct (non-aggregated) arguments of an ordered-set or + + aggnumdirectargs int2 + + + Number of direct (non-aggregated) arguments of an ordered-set or hypothetical-set aggregate, counting a variadic array as one argument. If equal to pronargs, the aggregate must be variadic and the variadic array describes the aggregated arguments as well as the final direct arguments. - Always zero for normal aggregates. + Always zero for normal aggregates. + + - aggtransfn - regproc - pg_proc.oid - Transition function + + aggtransfn regproc + (references pg_proc.oid) + + + Transition function + + - aggfinalfn - regproc - pg_proc.oid - Final function (zero if none) + + aggfinalfn regproc + (references pg_proc.oid) + + + Final function (zero if none) + + - aggcombinefn - regproc - pg_proc.oid - Combine function (zero if none) + + aggcombinefn regproc + (references pg_proc.oid) + + + Combine function (zero if none) + + - aggserialfn - regproc - pg_proc.oid - Serialization function (zero if none) + + aggserialfn regproc + (references pg_proc.oid) + + + Serialization function (zero if none) + + - aggdeserialfn - regproc - pg_proc.oid - Deserialization function (zero if none) + + aggdeserialfn regproc + (references pg_proc.oid) + + + Deserialization function (zero if none) + + - aggmtransfn - regproc - pg_proc.oid - Forward transition function for moving-aggregate mode (zero if none) + + aggmtransfn regproc + (references pg_proc.oid) + + + Forward transition function for moving-aggregate mode (zero if none) + + - aggminvtransfn - regproc - pg_proc.oid - Inverse transition function for moving-aggregate mode (zero if none) + + aggminvtransfn regproc + (references pg_proc.oid) + + + Inverse transition function for moving-aggregate mode (zero if none) + + - aggmfinalfn - regproc - pg_proc.oid - Final function for moving-aggregate mode (zero if none) + + aggmfinalfn regproc + (references pg_proc.oid) + + + Final function for moving-aggregate mode (zero if none) + + - aggfinalextra - bool - - True to pass extra dummy arguments to aggfinalfn + + aggfinalextra bool + + + True to pass extra dummy arguments to aggfinalfn + + - aggmfinalextra - bool - - True to pass extra dummy arguments to aggmfinalfn + + aggmfinalextra bool + + + True to pass extra dummy arguments to aggmfinalfn + + - aggfinalmodify - char - - Whether aggfinalfn modifies the + + aggfinalmodify char + + + Whether aggfinalfn modifies the transition state value: r if it is read-only, s if the aggtransfn cannot be applied after the aggfinalfn, or w if it writes on the value - + + - aggmfinalmodify - char - - Like aggfinalmodify, but for + + aggmfinalmodify char + + + Like aggfinalmodify, but for the aggmfinalfn - + + - aggsortop - oid - pg_operator.oid - Associated sort operator (zero if none) + + aggsortop oid + (references pg_operator.oid) + + + Associated sort operator (zero if none) + + - aggtranstype - oid - pg_type.oid - Data type of the aggregate function's internal transition (state) data + + aggtranstype oid + (references pg_type.oid) + + + Data type of the aggregate function's internal transition (state) data + + - aggtransspace - int4 - - Approximate average size (in bytes) of the transition state - data, or zero to use a default estimate + + aggtransspace int4 + + + Approximate average size (in bytes) of the transition state + data, or zero to use a default estimate + + - aggmtranstype - oid - pg_type.oid - Data type of the aggregate function's internal transition (state) - data for moving-aggregate mode (zero if none) + + aggmtranstype oid + (references pg_type.oid) + + + Data type of the aggregate function's internal transition (state) + data for moving-aggregate mode (zero if none) + + - aggmtransspace - int4 - - Approximate average size (in bytes) of the transition state data - for moving-aggregate mode, or zero to use a default estimate + + aggmtransspace int4 + + + Approximate average size (in bytes) of the transition state data + for moving-aggregate mode, or zero to use a default estimate + + - agginitval - text - - + + agginitval text + + The initial value of the transition state. This is a text field containing the initial value in its external string representation. If this field is null, the transition state value starts out null. - + + - aggminitval - text - - + + aggminitval text + + The initial value of the transition state for moving-aggregate mode. This is a text field containing the initial value in its external string representation. If this field is null, the transition state value starts out null. - + @@ -594,50 +666,56 @@
<structname>pg_am</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - - oid - oid - - Row identifier + + oid oid + + + Row identifier + - amname - name - - Name of the access method + + amname name + + + Name of the access method + - amhandler - regproc - pg_proc.oid - + + amhandler regproc + (references pg_proc.oid) + + OID of a handler function that is responsible for supplying information about the access method - + - amtype - char - - + + amtype char + + t = table (including materialized views), i = index. - + @@ -678,83 +756,107 @@
<structname>pg_amop</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - - oid - oid - - Row identifier + + oid oid + + + Row identifier + - amopfamily - oid - pg_opfamily.oid - The operator family this entry is for + + amopfamily oid + (references pg_opfamily.oid) + + + The operator family this entry is for + - amoplefttype - oid - pg_type.oid - Left-hand input data type of operator + + amoplefttype oid + (references pg_type.oid) + + + Left-hand input data type of operator + - amoprighttype - oid - pg_type.oid - Right-hand input data type of operator + + amoprighttype oid + (references pg_type.oid) + + + Right-hand input data type of operator + - amopstrategy - int2 - - Operator strategy number + + amopstrategy int2 + + + Operator strategy number + - amoppurpose - char - - Operator purpose, either s for search or - o for ordering + + amoppurpose char + + + Operator purpose, either s for search or + o for ordering + - amopopr - oid - pg_operator.oid - OID of the operator + + amopopr oid + (references pg_operator.oid) + + + OID of the operator + - amopmethod - oid - pg_am.oid - Index access method operator family is for + + amopmethod oid + (references pg_am.oid) + + + Index access method operator family is for + - amopsortfamily - oid - pg_opfamily.oid - The B-tree operator family this entry sorts according to, if an - ordering operator; zero if a search operator + + amopsortfamily oid + (references pg_opfamily.oid) + + + The B-tree operator family this entry sorts according to, if an + ordering operator; zero if a search operator + -
@@ -821,60 +923,76 @@ <structname>pg_amproc</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - - oid - oid - - Row identifier + + oid oid + + + Row identifier + - amprocfamily - oid - pg_opfamily.oid - The operator family this entry is for + + amprocfamily oid + (references pg_opfamily.oid) + + + The operator family this entry is for + - amproclefttype - oid - pg_type.oid - Left-hand input data type of associated operator + + amproclefttype oid + (references pg_type.oid) + + + Left-hand input data type of associated operator + - amprocrighttype - oid - pg_type.oid - Right-hand input data type of associated operator + + amprocrighttype oid + (references pg_type.oid) + + + Right-hand input data type of associated operator + - amprocnum - int2 - - Support function number + + amprocnum int2 + + + Support function number + - amproc - regproc - pg_proc.oid - OID of the function + + amproc regproc + (references pg_proc.oid) + + + OID of the function + -
@@ -911,46 +1029,57 @@ <structname>pg_attrdef</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - adrelid - oid - pg_class.oid - The table this column belongs to + + adrelid oid + (references pg_class.oid) + + + The table this column belongs to + - adnum - int2 - pg_attribute.attnum - The number of the column + + adnum int2 + (references pg_attribute.attnum) + + + The number of the column + - adbin - pg_node_tree - - The column default value, in nodeToString() - representation. Use pg_get_expr(adbin, adrelid) to - convert it to an SQL expression. + + adbin pg_node_tree + + + The column default value, in nodeToString() + representation. Use pg_get_expr(adbin, adrelid) to + convert it to an SQL expression. + @@ -981,44 +1110,53 @@
<structname>pg_attribute</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - attrelid - oid - pg_class.oid - The table this column belongs to + + attrelid oid + (references pg_class.oid) + + + The table this column belongs to + - attname - name - - The column name + + attname name + + + The column name + - atttypid - oid - pg_type.oid - The data type of this column + + atttypid oid + (references pg_type.oid) + + + The data type of this column + - attstattarget - int4 - - + + attstattarget int4 + + attstattarget controls the level of detail of statistics accumulated for this column by . @@ -1028,234 +1166,234 @@ For scalar data types, attstattarget is both the target number of most common values to collect, and the target number of histogram bins to create. - + - attlen - int2 - - + + attlen int2 + + A copy of pg_type.typlen of this column's type - + - attnum - int2 - - + + attnum int2 + + The number of the column. Ordinary columns are numbered from 1 up. System columns, such as ctid, have (arbitrary) negative numbers. - + - attndims - int4 - - + + attndims int4 + + Number of dimensions, if the column is an array type; otherwise 0. (Presently, the number of dimensions of an array is not enforced, so any nonzero value effectively means it's an array.) - + - attcacheoff - int4 - - + + attcacheoff int4 + + Always -1 in storage, but when loaded into a row descriptor in memory this might be updated to cache the offset of the attribute within the row - + - atttypmod - int4 - - + + atttypmod int4 + + atttypmod records type-specific data supplied at table creation time (for example, the maximum length of a varchar column). It is passed to type-specific input functions and length coercion functions. The value will generally be -1 for types that do not need atttypmod. - + - attbyval - bool - - + + attbyval bool + + A copy of pg_type.typbyval of this column's type - + - attstorage - char - - + + attstorage char + + Normally a copy of pg_type.typstorage of this column's type. For TOAST-able data types, this can be altered after column creation to control storage policy. - + - attalign - char - - + + attalign char + + A copy of pg_type.typalign of this column's type - + - attnotnull - bool - - + + attnotnull bool + + This represents a not-null constraint. - + - atthasdef - bool - - + + atthasdef bool + + This column has a default expression or generation expression, in which case there will be a corresponding entry in the pg_attrdef catalog that actually defines the expression. (Check attgenerated to determine whether this is a default or a generation expression.) - + - atthasmissing - bool - - + + atthasmissing bool + + This column has a value which is used where the column is entirely missing from the row, as happens when a column is added with a non-volatile DEFAULT value after the row is created. The actual value used is stored in the attmissingval column. - + - attidentity - char - - + + attidentity char + + If a zero byte (''), then not an identity column. Otherwise, a = generated always, d = generated by default. - + - attgenerated - char - - + + attgenerated char + + If a zero byte (''), then not a generated column. Otherwise, s = stored. (Other values might be added in the future.) - + - attisdropped - bool - - + + attisdropped bool + + This column has been dropped and is no longer valid. A dropped column is still physically present in the table, but is ignored by the parser and so cannot be accessed via SQL. - + - attislocal - bool - - + + attislocal bool + + This column is defined locally in the relation. Note that a column can be locally defined and inherited simultaneously. - + - attinhcount - int4 - - + + attinhcount int4 + + The number of direct ancestors this column has. A column with a nonzero number of ancestors cannot be dropped nor renamed. - + - attcollation - oid - pg_collation.oid - + + attcollation oid + (references pg_collation.oid) + + The defined collation of the column, or zero if the column is not of a collatable data type. - + - attacl - aclitem[] - - + + attacl aclitem[] + + Column-level access privileges, if any have been granted specifically on this column - + - attoptions - text[] - - + + attoptions text[] + + Attribute-level options, as keyword=value strings - + - attfdwoptions - text[] - - + + attfdwoptions text[] + + Attribute-level foreign data wrapper options, as keyword=value strings - + - attmissingval - anyarray - - + + attmissingval anyarray + + This column has a one element array containing the value used when the column is entirely missing from the row, as happens when the column is added with a non-volatile DEFAULT value after the row is created. The value is only used when atthasmissing is true. If there is no value the column is null. - + -
@@ -1311,105 +1449,132 @@ <structname>pg_authid</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + - - oid - oid - Row identifier + + oid oid + + + Row identifier + - rolname - name - Role name + + rolname name + + + Role name + - rolsuper - bool - Role has superuser privileges + + rolsuper bool + + + Role has superuser privileges + - rolinherit - bool - Role automatically inherits privileges of roles it is a - member of + + rolinherit bool + + + Role automatically inherits privileges of roles it is a + member of + - rolcreaterole - bool - Role can create more roles + + rolcreaterole bool + + + Role can create more roles + - rolcreatedb - bool - Role can create databases + + rolcreatedb bool + + + Role can create databases + - rolcanlogin - bool - + + rolcanlogin bool + + Role can log in. That is, this role can be given as the initial session authorization identifier - + - rolreplication - bool - + + rolreplication bool + + Role is a replication role. A replication role can initiate replication connections and create and drop replication slots. - + - rolbypassrls - bool - + + rolbypassrls bool + + Role bypasses every row level security policy, see for more information. - + - rolconnlimit - int4 - + + rolconnlimit int4 + + For roles that can log in, this sets maximum number of concurrent connections this role can make. -1 means no limit. - + - rolpassword - text - + + rolpassword text + + Password (possibly encrypted); null if none. The format depends on the form of encryption used. - + - rolvaliduntil - timestamptz - Password expiry time (only used for password authentication); - null if no expiration + + rolvaliduntil timestamptz + + + Password expiry time (only used for password authentication); + null if no expiration + @@ -1463,45 +1628,57 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_auth_members</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - roleid - oid - pg_authid.oid - ID of a role that has a member + + roleid oid + (references pg_authid.oid) + + + ID of a role that has a member + - member - oid - pg_authid.oid - ID of a role that is a member of roleid + + member oid + (references pg_authid.oid) + + + ID of a role that is a member of roleid + - grantor - oid - pg_authid.oid - ID of the role that granted this membership + + grantor oid + (references pg_authid.oid) + + + ID of the role that granted this membership + - admin_option - bool - - True if member can grant membership in - roleid to others + + admin_option bool + + + True if member can grant membership in + roleid to others + @@ -1536,54 +1713,64 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_cast</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - castsource - oid - pg_type.oid - OID of the source data type + + castsource oid + (references pg_type.oid) + + + OID of the source data type + - casttarget - oid - pg_type.oid - OID of the target data type + + casttarget oid + (references pg_type.oid) + + + OID of the target data type + - castfunc - oid - pg_proc.oid - + + castfunc oid + (references pg_proc.oid) + + The OID of the function to use to perform this cast. Zero is stored if the cast method doesn't require a function. - + - castcontext - char - - + + castcontext char + + Indicates what contexts the cast can be invoked in. e means only as an explicit cast (using CAST or :: syntax). @@ -1591,18 +1778,19 @@ SCRAM-SHA-256$<iteration count>:&l to a target column, as well as explicitly. i means implicitly in expressions, as well as the other cases. - + + - castmethod - char - - + + castmethod char + + Indicates how the cast is performed. f means that the function specified in the castfunc field is used. i means that the input/output functions are used. b means that the types are binary-coercible, thus no conversion is required. - + @@ -1659,182 +1847,198 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_class</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - relname - name - - Name of the table, index, view, etc. + + relname name + + + Name of the table, index, view, etc. + - relnamespace - oid - pg_namespace.oid - + + relnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this relation - + - reltype - oid - pg_type.oid - + + reltype oid + (references pg_type.oid) + + The OID of the data type that corresponds to this table's row type, if any (zero for indexes, which have no pg_type entry) - + - reloftype - oid - pg_type.oid - + + reloftype oid + (references pg_type.oid) + + For typed tables, the OID of the underlying composite type, zero for all other relations - + - relowner - oid - pg_authid.oid - Owner of the relation + + relowner oid + (references pg_authid.oid) + + + Owner of the relation + - relam - oid - pg_am.oid - + + relam oid + (references pg_am.oid) + + If this is a table or an index, the access method used (heap, B-tree, hash, etc.) - + - relfilenode - oid - - Name of the on-disk file of this relation; zero means this + + relfilenode oid + + + Name of the on-disk file of this relation; zero means this is a mapped relation whose disk file name is determined - by low-level state + by low-level state + - reltablespace - oid - pg_tablespace.oid - + + reltablespace oid + (references pg_tablespace.oid) + + The tablespace in which this relation is stored. If zero, the database's default tablespace is implied. (Not meaningful if the relation has no on-disk file.) - + - relpages - int4 - - + + relpages int4 + + Size of the on-disk representation of this table in pages (of size BLCKSZ). This is only an estimate used by the planner. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX. - + - reltuples - float4 - - + + reltuples float4 + + Number of live rows in the table. This is only an estimate used by the planner. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX. - + - relallvisible - int4 - - + + relallvisible int4 + + Number of pages that are marked all-visible in the table's visibility map. This is only an estimate used by the planner. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX. - + - reltoastrelid - oid - pg_class.oid - + + reltoastrelid oid + (references pg_class.oid) + + OID of the TOAST table associated with this table, 0 if none. The TOAST table stores large attributes out of line in a secondary table. - + - relhasindex - bool - - + + relhasindex bool + + True if this is a table and it has (or recently had) any indexes - + - relisshared - bool - - + + relisshared bool + + True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared. - + - relpersistence - char - - + + relpersistence char + + p = permanent table, u = unlogged table, t = temporary table - + - relkind - char - - + + relkind char + + r = ordinary table, i = index, S = sequence, @@ -1845,172 +2049,177 @@ SCRAM-SHA-256$<iteration count>:&l f = foreign table, p = partitioned table, I = partitioned index - + - relnatts - int2 - - + + relnatts int2 + + Number of user columns in the relation (system columns not counted). There must be this many corresponding entries in pg_attribute. See also pg_attribute.attnum. - + - relchecks - int2 - - + + relchecks int2 + + Number of CHECK constraints on the table; see pg_constraint catalog - + - relhasrules - bool - - + + relhasrules bool + + True if table has (or once had) rules; see pg_rewrite catalog - + - relhastriggers - bool - - + + relhastriggers bool + + True if table has (or once had) triggers; see pg_trigger catalog - + - relhassubclass - bool - - + + relhassubclass bool + + True if table or index has (or once had) any inheritance children - + - relrowsecurity - bool - - + + relrowsecurity bool + + True if table has row level security enabled; see pg_policy catalog - + - relforcerowsecurity - bool - - + + relforcerowsecurity bool + + True if row level security (when enabled) will also apply to table owner; see pg_policy catalog - + - relispopulated - bool - - True if relation is populated (this is true for all - relations other than some materialized views) + + relispopulated bool + + + True if relation is populated (this is true for all + relations other than some materialized views) + - relreplident - char - - + + relreplident char + + Columns used to form replica identity for rows: d = default (primary key, if any), n = nothing, f = all columns i = index with indisreplident set, or default - + - relispartition - bool - - True if table or index is a partition + + relispartition bool + + + True if table or index is a partition + - relrewrite - oid - pg_class.oid - + + relrewrite oid + (references pg_class.oid) + + For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise 0. That state is only visible internally; this field should never contain anything other than 0 for a user-visible relation. - + - relfrozenxid - xid - - + + relfrozenxid xid + + All transaction IDs before this one have been replaced with a permanent (frozen) transaction ID in this table. This is used to track whether the table needs to be vacuumed in order to prevent transaction ID wraparound or to allow pg_xact to be shrunk. Zero (InvalidTransactionId) if the relation is not a table. - + - relminmxid - xid - - + + relminmxid xid + + All multixact IDs before this one have been replaced by a transaction ID in this table. This is used to track whether the table needs to be vacuumed in order to prevent multixact ID wraparound or to allow pg_multixact to be shrunk. Zero (InvalidMultiXactId) if the relation is not a table. - + - relacl - aclitem[] - - + + relacl aclitem[] + + Access privileges; see for details - + - reloptions - text[] - - + + reloptions text[] + + Access-method-specific options, as keyword=value strings - + - relpartbound - pg_node_tree - - + + relpartbound pg_node_tree + + If table is a partition (see relispartition), internal representation of the partition bound - + @@ -2044,94 +2253,113 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_collation</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - collname - name - - Collation name (unique per namespace and encoding) + + collname name + + + Collation name (unique per namespace and encoding) + - collnamespace - oid - pg_namespace.oid - + + collnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this collation - + - collowner - oid - pg_authid.oid - Owner of the collation + + collowner oid + (references pg_authid.oid) + + + Owner of the collation + - collprovider - char - - Provider of the collation: d = database - default, c = libc, i = icu + + collprovider char + + + Provider of the collation: d = database + default, c = libc, i = icu + - collisdeterministic - bool - - Is the collation deterministic? + + collisdeterministic bool + + + Is the collation deterministic? + - collencoding - int4 - - Encoding in which the collation is applicable, or -1 if it - works for any encoding + + collencoding int4 + + + Encoding in which the collation is applicable, or -1 if it + works for any encoding + - collcollate - name - - LC_COLLATE for this collation object + + collcollate name + + + LC_COLLATE for this collation object + - collctype - name - - LC_CTYPE for this collation object + + collctype name + + + LC_CTYPE for this collation object + - collversion - text - - + + collversion text + + Provider-specific version of the collation. This is recorded when the collation is created and then checked when it is used, to detect changes in the collation definition that could lead to data corruption. - + @@ -2189,233 +2417,283 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_constraint</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - conname - name - - Constraint name (not necessarily unique!) + + conname name + + + Constraint name (not necessarily unique!) + - connamespace - oid - pg_namespace.oid - + + connamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this constraint - + - contype - char - - - c = check constraint, - f = foreign key constraint, - p = primary key constraint, - u = unique constraint, - t = constraint trigger, - x = exclusion constraint - + + contype char + + + c = check constraint, + f = foreign key constraint, + p = primary key constraint, + u = unique constraint, + t = constraint trigger, + x = exclusion constraint + - condeferrable - bool - - Is the constraint deferrable? + + condeferrable bool + + + Is the constraint deferrable? + - condeferred - bool - - Is the constraint deferred by default? + + condeferred bool + + + Is the constraint deferred by default? + - convalidated - bool - - Has the constraint been validated? - Currently, can only be false for foreign keys and CHECK constraints + + convalidated bool + + + Has the constraint been validated? + Currently, can only be false for foreign keys and CHECK constraints + - conrelid - oid - pg_class.oid - The table this constraint is on; 0 if not a table constraint + + conrelid oid + (references pg_class.oid) + + + The table this constraint is on; 0 if not a table constraint + - contypid - oid - pg_type.oid - The domain this constraint is on; 0 if not a domain constraint + + contypid oid + (references pg_type.oid) + + + The domain this constraint is on; 0 if not a domain constraint + - conindid - oid - pg_class.oid - The index supporting this constraint, if it's a unique, primary - key, foreign key, or exclusion constraint; else 0 + + conindid oid + (references pg_class.oid) + + + The index supporting this constraint, if it's a unique, primary + key, foreign key, or exclusion constraint; else 0 + - conparentid - oid - pg_constraint.oid - The corresponding constraint in the parent partitioned table, - if this is a constraint in a partition; else 0 + + conparentid oid + (references pg_constraint.oid) + + + The corresponding constraint in the parent partitioned table, + if this is a constraint in a partition; else 0 + - confrelid - oid - pg_class.oid - If a foreign key, the referenced table; else 0 + + confrelid oid + (references pg_class.oid) + + + If a foreign key, the referenced table; else 0 + - confupdtype - char - - Foreign key update action code: - a = no action, - r = restrict, - c = cascade, - n = set null, - d = set default - + + confupdtype char + + + Foreign key update action code: + a = no action, + r = restrict, + c = cascade, + n = set null, + d = set default + - confdeltype - char - - Foreign key deletion action code: - a = no action, - r = restrict, - c = cascade, - n = set null, - d = set default - + + confdeltype char + + + Foreign key deletion action code: + a = no action, + r = restrict, + c = cascade, + n = set null, + d = set default + - confmatchtype - char - - Foreign key match type: - f = full, - p = partial, - s = simple - + + confmatchtype char + + + Foreign key match type: + f = full, + p = partial, + s = simple + - conislocal - bool - - + + conislocal bool + + This constraint is defined locally for the relation. Note that a constraint can be locally defined and inherited simultaneously. - + - coninhcount - int4 - - + + coninhcount int4 + + The number of direct inheritance ancestors this constraint has. A constraint with a nonzero number of ancestors cannot be dropped nor renamed. - + - connoinherit - bool - - + + connoinherit bool + + This constraint is defined locally for the relation. It is a non-inheritable constraint. - + - conkey - int2[] - pg_attribute.attnum - If a table constraint (including foreign keys, but not constraint - triggers), list of the constrained columns + + conkey int2[] + (references pg_attribute.attnum) + + + If a table constraint (including foreign keys, but not constraint + triggers), list of the constrained columns + - confkey - int2[] - pg_attribute.attnum - If a foreign key, list of the referenced columns + + confkey int2[] + (references pg_attribute.attnum) + + + If a foreign key, list of the referenced columns + - conpfeqop - oid[] - pg_operator.oid - If a foreign key, list of the equality operators for PK = FK comparisons + + conpfeqop oid[] + (references pg_operator.oid) + + + If a foreign key, list of the equality operators for PK = FK comparisons + - conppeqop - oid[] - pg_operator.oid - If a foreign key, list of the equality operators for PK = PK comparisons + + conppeqop oid[] + (references pg_operator.oid) + + + If a foreign key, list of the equality operators for PK = PK comparisons + - conffeqop - oid[] - pg_operator.oid - If a foreign key, list of the equality operators for FK = FK comparisons + + conffeqop oid[] + (references pg_operator.oid) + + + If a foreign key, list of the equality operators for FK = FK comparisons + - conexclop - oid[] - pg_operator.oid - If an exclusion constraint, list of the per-column exclusion operators + + conexclop oid[] + (references pg_operator.oid) + + + If an exclusion constraint, list of the per-column exclusion operators + - conbin - pg_node_tree - - If a check constraint, an internal representation of the - expression. (It's recommended to use - pg_get_constraintdef() to extract the definition of - a check constraint.) + + conbin pg_node_tree + + + If a check constraint, an internal representation of the + expression. (It's recommended to use + pg_get_constraintdef() to extract the definition of + a check constraint.) + @@ -2456,76 +2734,93 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_conversion</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - conname - name - - Conversion name (unique within a namespace) + + conname name + + + Conversion name (unique within a namespace) + - connamespace - oid - pg_namespace.oid - + + connamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this conversion - + - conowner - oid - pg_authid.oid - Owner of the conversion + + conowner oid + (references pg_authid.oid) + + + Owner of the conversion + - conforencoding - int4 - - Source encoding ID + + conforencoding int4 + + + Source encoding ID + - contoencoding - int4 - - Destination encoding ID + + contoencoding int4 + + + Destination encoding ID + - conproc - regproc - pg_proc.oid - Conversion function + + conproc regproc + (references pg_proc.oid) + + + Conversion function + - condefault - bool - - True if this is the default conversion + + condefault bool + + + True if this is the default conversion + -
@@ -2556,152 +2851,167 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_database</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - datname - name - - Database name + + datname name + + + Database name + - datdba - oid - pg_authid.oid - Owner of the database, usually the user who created it + + datdba oid + (references pg_authid.oid) + + + Owner of the database, usually the user who created it + - encoding - int4 - - Character encoding for this database - (pg_encoding_to_char() can translate - this number to the encoding name) + + encoding int4 + + + Character encoding for this database + (pg_encoding_to_char() can translate + this number to the encoding name) + - datcollate - name - - LC_COLLATE for this database + + datcollate name + + + LC_COLLATE for this database + - datctype - name - - LC_CTYPE for this database + + datctype name + + + LC_CTYPE for this database + - datistemplate - bool - - + + datistemplate bool + + If true, then this database can be cloned by any user with CREATEDB privileges; if false, then only superusers or the owner of the database can clone it. - + - datallowconn - bool - - + + datallowconn bool + + If false then no one can connect to this database. This is used to protect the template0 database from being altered. - + - datconnlimit - int4 - - + + datconnlimit int4 + + Sets maximum number of concurrent connections that can be made to this database. -1 means no limit. - + - datlastsysoid - oid - - + + datlastsysoid oid + + Last system OID in the database; useful particularly to pg_dump - + - datfrozenxid - xid - - + + datfrozenxid xid + + All transaction IDs before this one have been replaced with a permanent (frozen) transaction ID in this database. This is used to track whether the database needs to be vacuumed in order to prevent transaction ID wraparound or to allow pg_xact to be shrunk. It is the minimum of the per-table pg_class.relfrozenxid values. - + - datminmxid - xid - - + + datminmxid xid + + All multixact IDs before this one have been replaced with a transaction ID in this database. This is used to track whether the database needs to be vacuumed in order to prevent multixact ID wraparound or to allow pg_multixact to be shrunk. It is the minimum of the per-table pg_class.relminmxid values. - + - dattablespace - oid - pg_tablespace.oid - + + dattablespace oid + (references pg_tablespace.oid) + + The default tablespace for the database. Within this database, all tables for which pg_class.reltablespace is zero will be stored in this tablespace; in particular, all the non-shared system catalogs will be there. - + - datacl - aclitem[] - - + + datacl aclitem[] + + Access privileges; see for details - + @@ -2731,37 +3041,46 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_db_role_setting</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - setdatabase - oid - pg_database.oid - The OID of the database the setting is applicable to, or zero if not database-specific + + setdatabase oid + (references pg_database.oid) + + + The OID of the database the setting is applicable to, or zero if not database-specific + - setrole - oid - pg_authid.oid - The OID of the role the setting is applicable to, or zero if not role-specific + + setrole oid + (references pg_authid.oid) + + + The OID of the role the setting is applicable to, or zero if not role-specific + - setconfig - text[] - - Defaults for run-time configuration variables + + setconfig text[] + + + Defaults for run-time configuration variables + @@ -2783,61 +3102,70 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_default_acl</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - defaclrole - oid - pg_authid.oid - The OID of the role associated with this entry + + defaclrole oid + (references 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 + + defaclnamespace oid + (references pg_namespace.oid) + + + The OID of the namespace associated with this entry, + or 0 if none + - defaclobjtype - char - - + + defaclobjtype char + + Type of object this entry is for: r = relation (table, view), S = sequence, f = function, T = type, n = schema - + - defaclacl - aclitem[] - - + + defaclacl aclitem[] + + Access privileges that this type of object should have on creation - + @@ -2888,79 +3216,91 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_depend</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - classid - oid - pg_class.oid - The OID of the system catalog the dependent object is in + + classid oid + (references pg_class.oid) + + + The OID of the system catalog the dependent object is in + - objid - oid - any OID column - The OID of the specific dependent object + + objid oid + (references any OID column) + + + The OID of the specific dependent object + - objsubid - int4 - - + + objsubid int4 + + For a table column, this is the column number (the objid and classid refer to the table itself). For all other object types, this column is zero. - + - refclassid - oid - pg_class.oid - The OID of the system catalog the referenced object is in + + refclassid oid + (references pg_class.oid) + + + The OID of the system catalog the referenced object is in + - refobjid - oid - any OID column - The OID of the specific referenced object + + refobjid oid + (references any OID column) + + + The OID of the specific referenced object + - refobjsubid - int4 - - + + refobjsubid int4 + + For a table column, this is the column number (the refobjid and refclassid refer to the table itself). For all other object types, this column is zero. - + - deptype - char - - + + deptype char + + A code defining the specific semantics of this dependency relationship; see text - + -
@@ -3154,49 +3494,58 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_description</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - objoid - oid - any OID column - The OID of the object this description pertains to + + objoid oid + (references any OID column) + + + The OID of the object this description pertains to + - classoid - oid - pg_class.oid - The OID of the system catalog this object appears in + + classoid oid + (references pg_class.oid) + + + The OID of the system catalog this object appears in + - objsubid - int4 - - + + objsubid int4 + + For a comment on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero. - + - description - text - - Arbitrary text that serves as the description of this object + + description text + + + Arbitrary text that serves as the description of this object + @@ -3221,44 +3570,54 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_enum</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - enumtypid - oid - pg_type.oid - The OID of the pg_type entry owning this enum value + + enumtypid oid + (references 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 + + enumsortorder float4 + + + The sort position of this enum value within its enum type + - enumlabel - name - - The textual label for this enum value + + enumlabel name + + + The textual label for this enum value + @@ -3300,75 +3659,88 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_event_trigger</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - evtname - name - - Trigger name (must be unique) + + evtname name + + + Trigger name (must be unique) + - evtevent - name - - Identifies the event for which this trigger fires + + evtevent name + + + Identifies the event for which this trigger fires + - evtowner - oid - pg_authid.oid - Owner of the event trigger + + evtowner oid + (references pg_authid.oid) + + + Owner of the event trigger + - evtfoid - oid - pg_proc.oid - The function to be called + + evtfoid oid + (references pg_proc.oid) + + + The function to be called + - evtenabled - char - - + + evtenabled char + + Controls in which modes the event trigger fires. O = trigger fires in origin and local modes, D = trigger is disabled, R = trigger fires in replica mode, A = trigger fires always. - + - evttags - text[] - - - Command tags for which this trigger will fire. If NULL, the firing - of this trigger is not restricted on the basis of the command tag. - + + evttags text[] + + + Command tags for which this trigger will fire. If NULL, the firing + of this trigger is not restricted on the basis of the command tag. + @@ -3391,76 +3763,95 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_extension</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - extname - name - - Name of the extension + + extname name + + + Name of the extension + - extowner - oid - pg_authid.oid - Owner of the extension + + extowner oid + (references pg_authid.oid) + + + Owner of the extension + - extnamespace - oid - pg_namespace.oid - Schema containing the extension's exported objects + + extnamespace oid + (references pg_namespace.oid) + + + Schema containing the extension's exported objects + - extrelocatable - bool - - True if extension can be relocated to another schema + + extrelocatable bool + + + True if extension can be relocated to another schema + - extversion - text - - Version name for the extension + + extversion text + + + Version name for the extension + - extconfig - oid[] - pg_class.oid - Array of regclass OIDs for the extension's configuration - table(s), or NULL if none + + extconfig oid[] + (references pg_class.oid) + + + Array of regclass OIDs for the extension's configuration + table(s), or NULL if none + - extcondition - text[] - - Array of WHERE-clause filter conditions for the - extension's configuration table(s), or NULL if none + + extcondition text[] + + + Array of WHERE-clause filter conditions for the + extension's configuration table(s), or NULL if none + -
@@ -3494,79 +3885,89 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_foreign_data_wrapper</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - fdwname - name - - Name of the foreign-data wrapper + + fdwname name + + + Name of the foreign-data wrapper + - fdwowner - oid - pg_authid.oid - Owner of the foreign-data wrapper + + fdwowner oid + (references pg_authid.oid) + + + Owner of the foreign-data wrapper + - fdwhandler - oid - pg_proc.oid - + + fdwhandler oid + (references pg_proc.oid) + + References a handler function that is responsible for supplying execution routines for the foreign-data wrapper. Zero if no handler is provided - + - fdwvalidator - oid - pg_proc.oid - + + fdwvalidator oid + (references pg_proc.oid) + + References a validator function that is responsible for checking the validity of the options given to the foreign-data wrapper, as well as options for foreign servers and user mappings using the foreign-data wrapper. Zero if no validator is provided - + - fdwacl - aclitem[] - - + + fdwacl aclitem[] + + Access privileges; see for details - + - fdwoptions - text[] - - + + fdwoptions text[] + + Foreign-data wrapper specific options, as keyword=value strings - + @@ -3590,76 +3991,91 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_foreign_server</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - srvname - name - - Name of the foreign server + + srvname name + + + Name of the foreign server + - srvowner - oid - pg_authid.oid - Owner of the foreign server + + srvowner oid + (references pg_authid.oid) + + + Owner of the foreign server + - srvfdw - oid - pg_foreign_data_wrapper.oid - OID of the foreign-data wrapper of this foreign server + + srvfdw oid + (references pg_foreign_data_wrapper.oid) + + + OID of the foreign-data wrapper of this foreign server + - srvtype - text - - Type of the server (optional) + + srvtype text + + + Type of the server (optional) + - srvversion - text - - Version of the server (optional) + + srvversion text + + + Version of the server (optional) + - srvacl - aclitem[] - - + + srvacl aclitem[] + + Access privileges; see for details - + - srvoptions - text[] - - + + srvoptions text[] + + Foreign server specific options, as keyword=value strings - + @@ -3685,39 +4101,46 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_foreign_table</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - ftrelid - oid - pg_class.oid - OID of the pg_class entry for this foreign table + + ftrelid oid + (references pg_class.oid) + + + OID of the pg_class entry for this foreign table + - ftserver - oid - pg_foreign_server.oid - OID of the foreign server for this foreign table + + ftserver oid + (references pg_foreign_server.oid) + + + OID of the foreign server for this foreign table + - ftoptions - text[] - - + + ftoptions text[] + + Foreign table options, as keyword=value strings - + @@ -3740,149 +4163,171 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_index</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - indexrelid - oid - pg_class.oid - The OID of the pg_class entry for this index + + indexrelid oid + (references pg_class.oid) + + + The OID of the pg_class entry for this index + - indrelid - oid - pg_class.oid - The OID of the pg_class entry for the table this index is for + + indrelid oid + (references pg_class.oid) + + + The OID of the pg_class entry for the table this index is for + - indnatts - int2 - - The total number of columns in the index (duplicates - pg_class.relnatts); this number includes both key and included attributes + + indnatts int2 + + + The total number of columns in the index (duplicates + pg_class.relnatts); this number includes both key and included attributes + - - indnkeyatts - int2 - - The number of key columns in the index, + + + indnkeyatts int2 + + + The number of key columns in the index, not counting any included columns, which are - merely stored and do not participate in the index semantics + merely stored and do not participate in the index semantics + - indisunique - bool - - If true, this is a unique index + + indisunique bool + + + If true, this is a unique index + - indisprimary - bool - - If true, this index represents the primary key of the table - (indisunique should always be true when this is true) + + indisprimary bool + + + If true, this index represents the primary key of the table + (indisunique should always be true when this is true) + - indisexclusion - bool - - If true, this index supports an exclusion constraint + + indisexclusion bool + + + If true, this index supports an exclusion constraint + - indimmediate - bool - - If true, the uniqueness check is enforced immediately on + + indimmediate bool + + + If true, the uniqueness check is enforced immediately on insertion - (irrelevant if indisunique is not true) + (irrelevant if indisunique is not true) + - indisclustered - bool - - If true, the table was last clustered on this index + + indisclustered bool + + + If true, the table was last clustered on this index + - indisvalid - bool - - + + indisvalid bool + + If true, the index is currently valid for queries. False means the index is possibly incomplete: it must still be modified by INSERT/UPDATE operations, but it cannot safely be used for queries. If it is unique, the uniqueness property is not guaranteed true either. - + - indcheckxmin - bool - - + + indcheckxmin bool + + If true, queries must not use the index until the xmin of this pg_index row is below their TransactionXmin event horizon, because the table may contain broken HOT chains with incompatible rows that they can see - + - indisready - bool - - + + indisready bool + + If true, the index is currently ready for inserts. False means the index must be ignored by INSERT/UPDATE operations. - + - indislive - bool - - + + indislive bool + + If false, the index is in process of being dropped, and should be ignored for all purposes (including HOT-safety decisions) - + - indisreplident - bool - - + + indisreplident bool + + If true this index has been chosen as replica identity using ALTER TABLE ... REPLICA IDENTITY USING INDEX ... - + - indkey - int2vector - pg_attribute.attnum - + + indkey int2vector + (references pg_attribute.attnum) + + This is an array of indnatts values that indicate which table columns this index indexes. For example a value of 1 3 would mean that the first and the third table @@ -3890,66 +4335,68 @@ SCRAM-SHA-256$<iteration count>:&l (included) columns. A zero in this array indicates that the corresponding index attribute is an expression over the table columns, rather than a simple column reference. - + - indcollation - oidvector - pg_collation.oid - + + indcollation oidvector + (references pg_collation.oid) + + For each column in the index key (indnkeyatts values), this contains the OID of the collation to use for the index, or zero if the column is not of a collatable data type. - + - indclass - oidvector - pg_opclass.oid - + + indclass oidvector + (references pg_opclass.oid) + + For each column in the index key (indnkeyatts values), this contains the OID of the operator class to use. See pg_opclass for details. - + - indoption - int2vector - - + + indoption int2vector + + This is an array of indnkeyatts values that store per-column flag bits. The meaning of the bits is defined by the index's access method. - + - indexprs - pg_node_tree - - + + indexprs pg_node_tree + + Expression trees (in nodeToString() representation) for index attributes that are not simple column references. This is a list with one element for each zero entry in indkey. Null if all index attributes are simple references. - + - indpred - pg_node_tree - - + + indpred pg_node_tree + + Expression tree (in nodeToString() representation) for partial index predicate. Null if not a partial index. - + @@ -3974,45 +4421,48 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_inherits</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - inhrelid - oid - pg_class.oid - + + inhrelid oid + (references pg_class.oid) + + The OID of the child table - + - inhparent - oid - pg_class.oid - + + inhparent oid + (references pg_class.oid) + + The OID of the parent table - + - inhseqno - int4 - - + + inhseqno int4 + + If there is more than one direct parent for a child table (multiple inheritance), this number tells the order in which the inherited columns are to be arranged. The count starts at 1. - + @@ -4058,63 +4508,69 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_init_privs</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - objoid - oid - any OID column - The OID of the specific object + + objoid oid + (references any OID column) + + + The OID of the specific object + - classoid - oid - pg_class.oid - The OID of the system catalog the object is in + + classoid oid + (references pg_class.oid) + + + The OID of the system catalog the object is in + - objsubid - int4 - - + + objsubid int4 + + For a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero. - + - privtype - char - - + + privtype char + + A code defining the type of initial privilege of this object; see text - + - initprivs - aclitem[] - - + + initprivs aclitem[] + + The initial access privileges; see for details - + -
@@ -4138,106 +4594,117 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_language</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - lanname - name - - Name of the language + + lanname name + + + Name of the language + - lanowner - oid - pg_authid.oid - Owner of the language + + lanowner oid + (references pg_authid.oid) + + + Owner of the language + - lanispl - bool - - + + lanispl bool + + This is false for internal languages (such as SQL) and true for user-defined languages. Currently, pg_dump still uses this to determine which languages need to be dumped, but this might be replaced by a different mechanism in the future. - + - lanpltrusted - bool - - + + lanpltrusted bool + + True if this is a trusted language, which means that it is believed not to grant access to anything outside the normal SQL execution environment. Only superusers can create functions in untrusted languages. - + - lanplcallfoid - oid - pg_proc.oid - + + lanplcallfoid oid + (references pg_proc.oid) + + For noninternal languages this references the language handler, which is a special function that is responsible for executing all functions that are written in the particular language - + - laninline - oid - pg_proc.oid - + + laninline oid + (references pg_proc.oid) + + This references a function that is responsible for executing inline anonymous code blocks ( blocks). Zero if inline blocks are not supported. - + - lanvalidator - oid - pg_proc.oid - + + lanvalidator oid + (references pg_proc.oid) + + This references a language validator function that is responsible for checking the syntax and validity of new functions when they are created. Zero if no validator is provided. - + - lanacl - aclitem[] - - + + lanacl aclitem[] + + Access privileges; see for details - + @@ -4275,41 +4742,47 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_largeobject</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - loid - oid - pg_largeobject_metadata.oid - Identifier of the large object that includes this page + + loid oid + (references pg_largeobject_metadata.oid) + + + Identifier of the large object that includes this page + - pageno - int4 - - Page number of this page within its large object - (counting from zero) + + pageno int4 + + + Page number of this page within its large object + (counting from zero) + - data - bytea - - + + data bytea + + Actual data stored in the large object. This will never be more than LOBLKSIZE bytes and might be less. - + @@ -4342,41 +4815,46 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_largeobject_metadata</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - lomowner - oid - pg_authid.oid - Owner of the large object + + lomowner oid + (references pg_authid.oid) + + + Owner of the large object + - lomacl - aclitem[] - - + + lomacl aclitem[] + + Access privileges; see for details - + -
@@ -4399,46 +4877,54 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_namespace</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - nspname - name - - Name of the namespace + + nspname name + + + Name of the namespace + - nspowner - oid - pg_authid.oid - Owner of the namespace + + nspowner oid + (references pg_authid.oid) + + + Owner of the namespace + - nspacl - aclitem[] - - + + nspacl aclitem[] + + Access privileges; see for details - + @@ -4471,81 +4957,105 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_opclass</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - - oid - oid - - Row identifier + + oid oid + + + Row identifier + - opcmethod - oid - pg_am.oid - Index access method operator class is for + + opcmethod oid + (references pg_am.oid) + + + Index access method operator class is for + - opcname - name - - Name of this operator class + + opcname name + + + Name of this operator class + - opcnamespace - oid - pg_namespace.oid - Namespace of this operator class + + opcnamespace oid + (references pg_namespace.oid) + + + Namespace of this operator class + - opcowner - oid - pg_authid.oid - Owner of the operator class + + opcowner oid + (references pg_authid.oid) + + + Owner of the operator class + - opcfamily - oid - pg_opfamily.oid - Operator family containing the operator class + + opcfamily oid + (references pg_opfamily.oid) + + + Operator family containing the operator class + - opcintype - oid - pg_type.oid - Data type that the operator class indexes + + opcintype oid + (references pg_type.oid) + + + Data type that the operator class indexes + - opcdefault - bool - - True if this operator class is the default for opcintype + + opcdefault bool + + + True if this operator class is the default for opcintype + - opckeytype - oid - pg_type.oid - Type of data stored in index, or zero if same as opcintype + + opckeytype oid + (references pg_type.oid) + + + Type of data stored in index, or zero if same as opcintype + -
@@ -4576,126 +5086,163 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_operator</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - oprname - name - - Name of the operator + + oprname name + + + Name of the operator + - oprnamespace - oid - pg_namespace.oid - + + oprnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this operator - + - oprowner - oid - pg_authid.oid - Owner of the operator + + oprowner oid + (references pg_authid.oid) + + + Owner of the operator + - oprkind - char - - + + oprkind char + + b = infix (both), l = prefix (left), r = postfix (right) - + - oprcanmerge - bool - - This operator supports merge joins + + oprcanmerge bool + + + This operator supports merge joins + - oprcanhash - bool - - This operator supports hash joins + + oprcanhash bool + + + This operator supports hash joins + - oprleft - oid - pg_type.oid - Type of the left operand + + oprleft oid + (references pg_type.oid) + + + Type of the left operand + - oprright - oid - pg_type.oid - Type of the right operand + + oprright oid + (references pg_type.oid) + + + Type of the right operand + - oprresult - oid - pg_type.oid - Type of the result + + oprresult oid + (references pg_type.oid) + + + Type of the result + - oprcom - oid - pg_operator.oid - Commutator of this operator, if any + + oprcom oid + (references pg_operator.oid) + + + Commutator of this operator, if any + - oprnegate - oid - pg_operator.oid - Negator of this operator, if any + + oprnegate oid + (references pg_operator.oid) + + + Negator of this operator, if any + - oprcode - regproc - pg_proc.oid - Function that implements this operator + + oprcode regproc + (references pg_proc.oid) + + + Function that implements this operator + - oprrest - regproc - pg_proc.oid - Restriction selectivity estimation function for this operator + + oprrest regproc + (references pg_proc.oid) + + + Restriction selectivity estimation function for this operator + - oprjoin - regproc - pg_proc.oid - Join selectivity estimation function for this operator + + oprjoin regproc + (references pg_proc.oid) + + + Join selectivity estimation function for this operator + @@ -4733,53 +5280,66 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_opfamily</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - - oid - oid - - Row identifier + + oid oid + + + Row identifier + - opfmethod - oid - pg_am.oid - Index access method operator family is for + + opfmethod oid + (references pg_am.oid) + + + Index access method operator family is for + - opfname - name - - Name of this operator family + + opfname name + + + Name of this operator family + - opfnamespace - oid - pg_namespace.oid - Namespace of this operator family + + opfnamespace oid + (references pg_namespace.oid) + + + Namespace of this operator family + - opfowner - oid - pg_authid.oid - Owner of the operator family + + opfowner oid + (references pg_authid.oid) + + + Owner of the operator family + -
@@ -4810,103 +5370,111 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_partitioned_table</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - - partrelid - oid - pg_class.oid - The OID of the pg_class entry for this partitioned table + + partrelid oid + (references pg_class.oid) + + + The OID of the pg_class entry for this partitioned table + - partstrat - char - - + + partstrat char + + Partitioning strategy; h = hash partitioned table, l = list partitioned table, r = range partitioned table - + - partnatts - int2 - - The number of columns in partition key + + partnatts int2 + + + The number of columns in partition key + - partdefid - oid - pg_class.oid - + + partdefid oid + (references pg_class.oid) + + The OID of the pg_class entry for the default partition of this partitioned table, or zero if this partitioned table does not have a default partition. - + - partattrs - int2vector - pg_attribute.attnum - + + partattrs int2vector + (references pg_attribute.attnum) + + This is an array of partnatts values that indicate which table columns are part of the partition key. For example, a value of 1 3 would mean that the first and the third table columns make up the partition key. A zero in this array indicates that the corresponding partition key column is an expression, rather than a simple column reference. - + - partclass - oidvector - pg_opclass.oid - + + partclass oidvector + (references pg_opclass.oid) + + For each column in the partition key, this contains the OID of the operator class to use. See pg_opclass for details. - + - partcollation - oidvector - pg_collation.oid - + + partcollation oidvector + (references pg_collation.oid) + + For each column in the partition key, this contains the OID of the collation to use for partitioning, or zero if the column is not of a collatable data type. - + - partexprs - pg_node_tree - - + + partexprs pg_node_tree + + Expression trees (in nodeToString() representation) for partition key columns that are not simple column references. This is a list with one element for each zero entry in partattrs. Null if all partition key columns are simple references. - + -
@@ -4931,81 +5499,98 @@ SCRAM-SHA-256$<iteration count>:&l - <structname>pg_policy</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - polname - name - - The name of the policy + + polname name + + + The name of the policy + - polrelid - oid - pg_class.oid - The table to which the policy applies + + polrelid oid + (references pg_class.oid) + + + The table to which the policy applies + - polcmd - char - - The command type to which the policy is applied: + + polcmd char + + + The command type to which the policy is applied: r for SELECT, a for INSERT, w for UPDATE, d for DELETE, - or * for all + or * for all + - polpermissive - boolean - - Is the policy permissive or restrictive? + + polpermissive bool + + + Is the policy permissive or restrictive? + - polroles - oid[] - pg_authid.oid - The roles to which the policy is applied + + polroles oid[] + (references pg_authid.oid) + + + The roles to which the policy is applied + - polqual - pg_node_tree - - The expression tree to be added to the security barrier qualifications for queries that use the table + + polqual pg_node_tree + + + The expression tree to be added to the security barrier qualifications for queries that use the table + - polwithcheck - pg_node_tree - - The expression tree to be added to the WITH CHECK qualifications for queries that attempt to add rows to the table + + polwithcheck pg_node_tree + + + The expression tree to be added to the WITH CHECK qualifications for queries that attempt to add rows to the table + -
@@ -5043,141 +5628,169 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_proc</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - proname - name - - Name of the function + + proname name + + + Name of the function + - pronamespace - oid - pg_namespace.oid - + + pronamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this function - + - proowner - oid - pg_authid.oid - Owner of the function + + proowner oid + (references pg_authid.oid) + + + Owner of the function + - prolang - oid - pg_language.oid - Implementation language or call interface of this function + + prolang oid + (references pg_language.oid) + + + Implementation language or call interface of this function + - procost - float4 - - Estimated execution cost (in units of + + procost float4 + + + Estimated execution cost (in units of ); if proretset, - this is cost per row returned + this is cost per row returned + - prorows - float4 - - Estimated number of result rows (zero if not proretset) + + prorows float4 + + + Estimated number of result rows (zero if not proretset) + - provariadic - oid - pg_type.oid - Data type of the variadic array parameter's elements, - or zero if the function does not have a variadic parameter + + provariadic oid + (references pg_type.oid) + + + Data type of the variadic array parameter's elements, + or zero if the function does not have a variadic parameter + - prosupport - regproc - pg_proc.oid - Optional planner support function for this function - (see ) + + prosupport regproc + (references pg_proc.oid) + + + Optional planner support function for this function + (see ) + - prokind - char - - f for a normal function, p - for a procedure, a for an aggregate function, or - w for a window function + + prokind char + + + f for a normal function, p + for a procedure, a for an aggregate function, or + w for a window function + - prosecdef - bool - - Function is a security definer (i.e., a setuid - function) + + prosecdef bool + + + Function is a security definer (i.e., a setuid + function) + - proleakproof - bool - - + + proleakproof bool + + The function has no side effects. No information about the arguments is conveyed except via the return value. Any function that might throw an error depending on the values of its arguments is not leak-proof. - + - proisstrict - bool - - + + proisstrict bool + + Function returns null if any call argument is null. In that case the function won't actually be called at all. Functions that are not strict must be prepared to handle null inputs. - + - proretset - bool - - Function returns a set (i.e., multiple values of the specified - data type) + + proretset bool + + + Function returns a set (i.e., multiple values of the specified + data type) + - provolatile - char - - + + provolatile char + + provolatile tells whether the function's result depends only on its input arguments, or is affected by outside factors. @@ -5189,14 +5802,14 @@ SCRAM-SHA-256$<iteration count>:&l whose results might change at any time. (Use v also for functions with side-effects, so that calls to them cannot get optimized away.) - + - proparallel - char - - + + proparallel char + + proparallel tells whether the function can be safely run in parallel mode. It is s for functions which are safe to run in @@ -5206,146 +5819,157 @@ SCRAM-SHA-256$<iteration count>:&l parallel worker processes cannot invoke these functions. It is u for functions which are unsafe in parallel mode; the presence of such a function forces a serial execution plan. - + - pronargs - int2 - - Number of input arguments + + pronargs int2 + + + Number of input arguments + - pronargdefaults - int2 - - Number of arguments that have defaults + + pronargdefaults int2 + + + Number of arguments that have defaults + - prorettype - oid - pg_type.oid - Data type of the return value + + prorettype oid + (references pg_type.oid) + + + Data type of the return value + - proargtypes - oidvector - pg_type.oid - + + proargtypes oidvector + (references pg_type.oid) + + An array with the data types of the function arguments. This includes only input arguments (including INOUT and VARIADIC arguments), and thus represents the call signature of the function. - + - proallargtypes - oid[] - pg_type.oid - + + proallargtypes oid[] + (references pg_type.oid) + + An array with the data types of the function arguments. This includes all arguments (including OUT and INOUT arguments); however, if all the arguments are IN arguments, this field will be null. Note that subscripting is 1-based, whereas for historical reasons proargtypes is subscripted from 0. - + - proargmodes - char[] - - - An array with the modes of the function arguments, encoded as - i for IN arguments, - o for OUT arguments, - b for INOUT arguments, - v for VARIADIC arguments, - t for TABLE arguments. - If all the arguments are IN arguments, - this field will be null. - Note that subscripts correspond to positions of - proallargtypes not proargtypes. - + + proargmodes char[] + + + An array with the modes of the function arguments, encoded as + i for IN arguments, + o for OUT arguments, + b for INOUT arguments, + v for VARIADIC arguments, + t for TABLE arguments. + If all the arguments are IN arguments, + this field will be null. + Note that subscripts correspond to positions of + proallargtypes not proargtypes. + - proargnames - text[] - - - An array with the names of the function arguments. - Arguments without a name are set to empty strings in the array. - If none of the arguments have a name, this field will be null. - Note that subscripts correspond to positions of - proallargtypes not proargtypes. - + + proargnames text[] + + + An array with the names of the function arguments. + Arguments without a name are set to empty strings in the array. + If none of the arguments have a name, this field will be null. + Note that subscripts correspond to positions of + proallargtypes not proargtypes. + - proargdefaults - pg_node_tree - - + + proargdefaults pg_node_tree + + Expression trees (in nodeToString() representation) for default values. This is a list with pronargdefaults elements, corresponding to the last N input arguments (i.e., the last N proargtypes positions). If none of the arguments have defaults, this field will be null. - + - protrftypes - oid[] - - + + protrftypes oid[] + + Data type OIDs for which to apply transforms. - + - prosrc - text - - + + prosrc text + + This tells the function handler how to invoke the function. It might be the actual source code of the function for interpreted languages, a link symbol, a file name, or just about anything else, depending on the implementation language/call convention. - + - probin - text - - + + probin text + + Additional information about how to invoke the function. Again, the interpretation is language-specific. - + - proconfig - text[] - - Function's local settings for run-time configuration variables + + proconfig text[] + + + Function's local settings for run-time configuration variables + - proacl - aclitem[] - - + + proacl aclitem[] + + Access privileges; see for details - + @@ -5378,88 +6002,106 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_publication</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - pubname - name - - Name of the publication + + pubname name + + + Name of the publication + - pubowner - oid - pg_authid.oid - Owner of the publication + + pubowner oid + (references pg_authid.oid) + + + Owner of the publication + - puballtables - bool - - If true, this publication automatically includes all tables + + puballtables bool + + + If true, this publication automatically includes all tables in the database, including any that will be created in the future. - + - pubinsert - bool - - If true, INSERT operations are replicated for - tables in the publication. + + pubinsert bool + + + If true, INSERT operations are replicated for + tables in the publication. + - pubupdate - bool - - If true, UPDATE operations are replicated for - tables in the publication. + + pubupdate bool + + + If true, UPDATE operations are replicated for + tables in the publication. + - pubdelete - bool - - If true, DELETE operations are replicated for - tables in the publication. + + pubdelete bool + + + If true, DELETE operations are replicated for + tables in the publication. + - pubtruncate - bool - - If true, TRUNCATE operations are replicated for - tables in the publication. + + pubtruncate bool + + + If true, TRUNCATE operations are replicated for + tables in the publication. + - pubviaroot - bool - - If true, operations on a leaf partition are replicated using the + + pubviaroot bool + + + If true, operations on a leaf partition are replicated using the identity and schema of its topmost partitioned ancestor mentioned in the publication instead of its own. - + @@ -5482,37 +6124,46 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_publication_rel</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - prpubid - oid - pg_publication.oid - Reference to publication + + prpubid oid + (references pg_publication.oid) + + + Reference to publication + - prrelid - oid - pg_class.oid - Reference to relation + + prrelid oid + (references pg_class.oid) + + + Reference to relation + @@ -5534,60 +6185,79 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_range</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - rngtypid - oid - pg_type.oid - OID of the range type + + rngtypid oid + (references pg_type.oid) + + + OID of the range type + - rngsubtype - oid - pg_type.oid - OID of the element type (subtype) of this range type + + rngsubtype oid + (references pg_type.oid) + + + OID of the element type (subtype) of this range type + - rngcollation - oid - pg_collation.oid - OID of the collation used for range comparisons, or 0 if none + + rngcollation oid + (references pg_collation.oid) + + + OID of the collation used for range comparisons, or 0 if none + - rngsubopc - oid - pg_opclass.oid - OID of the subtype's operator class used for range comparisons + + rngsubopc oid + (references pg_opclass.oid) + + + OID of the subtype's operator class used for range comparisons + - rngcanonical - regproc - pg_proc.oid - OID of the function to convert a range value into canonical form, - or 0 if none + + rngcanonical regproc + (references pg_proc.oid) + + + OID of the function to convert a range value into canonical form, + or 0 if none + - rngsubdiff - regproc - pg_proc.oid - OID of the function to return the difference between two element - values as double precision, or 0 if none + + rngsubdiff regproc + (references pg_proc.oid) + + + OID of the function to return the difference between two element + values as double precision, or 0 if none + @@ -5624,34 +6294,38 @@ SCRAM-SHA-256$<iteration count>:&l
- <structname>pg_replication_origin</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - roident - Oid - - A unique, cluster-wide identifier for the replication - origin. Should never leave the system. + + roident oid + + + A unique, cluster-wide identifier for the replication + origin. Should never leave the system. + - roname - text - - The external, user defined, name of a replication - origin. + + roname text + + + The external, user defined, name of a replication + origin. + @@ -5671,91 +6345,101 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_rewrite</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - rulename - name - - Rule name + + rulename name + + + Rule name + - ev_class - oid - pg_class.oid - The table this rule is for + + ev_class oid + (references pg_class.oid) + + + The table this rule is for + - ev_type - char - - + + ev_type char + + Event type that the rule is for: 1 = SELECT, 2 = UPDATE, 3 = INSERT, 4 = DELETE - + - ev_enabled - char - - + + ev_enabled char + + Controls in which modes the rule fires. O = rule fires in origin and local modes, D = rule is disabled, R = rule fires in replica mode, A = rule fires always. - + - is_instead - bool - - True if the rule is an INSTEAD rule + + is_instead bool + + + True if the rule is an INSTEAD rule + - ev_qual - pg_node_tree - - + + ev_qual pg_node_tree + + Expression tree (in the form of a nodeToString() representation) for the rule's qualifying condition - + - ev_action - pg_node_tree - - + + ev_action pg_node_tree + + Query tree (in the form of a nodeToString() representation) for the rule's action - + @@ -5792,56 +6476,67 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_seclabel</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - objoid - oid - any OID column - The OID of the object this security label pertains to + + objoid oid + (references any OID column) + + + The OID of the object this security label pertains to + - classoid - oid - pg_class.oid - The OID of the system catalog this object appears in + + classoid oid + (references pg_class.oid) + + + The OID of the system catalog this object appears in + - objsubid - int4 - - + + objsubid int4 + + For a security label on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero. - + - provider - text - - The label provider associated with this label. + + provider text + + + The label provider associated with this label. + - label - text - - The security label applied to this object. + + label text + + + The security label applied to this object. + @@ -5863,72 +6558,91 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_sequence</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - seqrelid - oid - pg_class.oid - The OID of the pg_class entry for this sequence + + seqrelid oid + (references pg_class.oid) + + + The OID of the pg_class entry for this sequence + - seqtypid - oid - pg_type.oid - Data type of the sequence + + seqtypid oid + (references pg_type.oid) + + + Data type of the sequence + - seqstart - int8 - - Start value of the sequence + + seqstart int8 + + + Start value of the sequence + - seqincrement - int8 - - Increment value of the sequence + + seqincrement int8 + + + Increment value of the sequence + - seqmax - int8 - - Maximum value of the sequence + + seqmax int8 + + + Maximum value of the sequence + - seqmin - int8 - - Minimum value of the sequence + + seqmin int8 + + + Minimum value of the sequence + - seqcache - int8 - - Cache size of the sequence + + seqcache int8 + + + Cache size of the sequence + - seqcycle - bool - - Whether the sequence cycles + + seqcycle bool + + + Whether the sequence cycles + @@ -5965,75 +6679,90 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_shdepend</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - dbid - oid - pg_database.oid - The OID of the database the dependent object is in, - or zero for a shared object + + dbid oid + (references pg_database.oid) + + + The OID of the database the dependent object is in, + or zero for a shared object + - classid - oid - pg_class.oid - The OID of the system catalog the dependent object is in + + classid oid + (references pg_class.oid) + + + The OID of the system catalog the dependent object is in + - objid - oid - any OID column - The OID of the specific dependent object + + objid oid + (references any OID column) + + + The OID of the specific dependent object + - objsubid - int4 - - + + objsubid int4 + + For a table column, this is the column number (the objid and classid refer to the table itself). For all other object types, this column is zero. - + - refclassid - oid - pg_class.oid - The OID of the system catalog the referenced object is in - (must be a shared catalog) + + refclassid oid + (references pg_class.oid) + + + The OID of the system catalog the referenced object is in + (must be a shared catalog) + - refobjid - oid - any OID column - The OID of the specific referenced object + + refobjid oid + (references any OID column) + + + The OID of the specific referenced object + - deptype - char - - + + deptype char + + A code defining the specific semantics of this dependency relationship; see text - + -
@@ -6127,37 +6856,46 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_shdescription</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - objoid - oid - any OID column - The OID of the object this description pertains to + + objoid oid + (references any OID column) + + + The OID of the object this description pertains to + - classoid - oid - pg_class.oid - The OID of the system catalog this object appears in + + classoid oid + (references pg_class.oid) + + + The OID of the system catalog this object appears in + - description - text - - Arbitrary text that serves as the description of this object + + description text + + + Arbitrary text that serves as the description of this object + @@ -6194,39 +6932,55 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_shseclabel</structname> Columns - + - Name - Type - References - Description + + Column Type + + + Description + + - objoid - oid - any OID column - The OID of the object this security label pertains to + + objoid oid + (references any OID column) + + + The OID of the object this security label pertains to + + - classoid - oid - pg_class.oid - The OID of the system catalog this object appears in + + classoid oid + (references pg_class.oid) + + + The OID of the system catalog this object appears in + + - provider - text - - The label provider associated with this label. + + provider text + + + The label provider associated with this label. + + - label - text - - The security label applied to this object. + + label text + + + The security label applied to this object. + @@ -6297,126 +7051,142 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_statistic</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - starelid - oid - pg_class.oid - The table or index that the described column belongs to + + starelid oid + (references pg_class.oid) + + + The table or index that the described column belongs to + - staattnum - int2 - pg_attribute.attnum - The number of the described column + + staattnum int2 + (references pg_attribute.attnum) + + + The number of the described column + - stainherit - bool - - If true, the stats include inheritance child columns, not just the - values in the specified relation + + stainherit bool + + + If true, the stats include inheritance child columns, not just the + values in the specified relation + - stanullfrac - float4 - - The fraction of the column's entries that are null + + stanullfrac float4 + + + The fraction of the column's entries that are null + - stawidth - int4 - - The average stored width, in bytes, of nonnull entries + + stawidth int4 + + + The average stored width, in bytes, of nonnull entries + - stadistinct - float4 - - The number of distinct nonnull data values in the column. - A value greater than zero is the actual number of distinct values. - A value less than zero is the negative of a multiplier for the number - of rows in the table; for example, a column in which about 80% of the - values are nonnull and each nonnull value appears about twice on - average could be represented by stadistinct = -0.4. - A zero value means the number of distinct values is unknown. - + + stadistinct float4 + + + The number of distinct nonnull data values in the column. + A value greater than zero is the actual number of distinct values. + A value less than zero is the negative of a multiplier for the number + of rows in the table; for example, a column in which about 80% of the + values are nonnull and each nonnull value appears about twice on + average could be represented by stadistinct = -0.4. + A zero value means the number of distinct values is unknown. + - stakindN - int2 - - + + stakindN int2 + + A code number indicating the kind of statistics stored in the Nth slot of the pg_statistic row. - + - staopN - oid - pg_operator.oid - + + staopN oid + (references pg_operator.oid) + + An operator used to derive the statistics stored in the Nth slot. For example, a histogram slot would show the < operator that defines the sort order of the data. - + - stacollN - oid - pg_collation.oid - + + stacollN oid + (references pg_collation.oid) + + The collation used to derive the statistics stored in the Nth slot. For example, a histogram slot for a collatable column would show the collation that defines the sort order of the data. Zero for noncollatable data. - + - stanumbersN - float4[] - - + + stanumbersN float4[] + + Numerical statistics of the appropriate kind for the Nth slot, or null if the slot kind does not involve numerical values - + - stavaluesN - anyarray - - + + stavaluesN anyarray + + Column data values of the appropriate kind for the Nth slot, or null if the slot kind does not store any data values. Each array's element values are actually of the specific column's data type, or a related type such as an array's element type, so there is no way to define these columns' type more specifically than anyarray. - + @@ -6440,61 +7210,72 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_statistic_ext</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - - oid - oid - - Row identifier + + oid oid + + + Row identifier + - stxrelid - oid - pg_class.oid - Table containing the columns described by this object + + stxrelid oid + (references pg_class.oid) + + + Table containing the columns described by this object + - stxname - name - - Name of the statistics object + + stxname name + + + Name of the statistics object + - stxnamespace - oid - pg_namespace.oid - + + stxnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this statistics object - + - stxowner - oid - pg_authid.oid - Owner of the statistics object + + stxowner oid + (references pg_authid.oid) + + + Owner of the statistics object + - stxstattarget - int4 - - + + stxstattarget int4 + + stxstattarget controls the level of detail of statistics accumulated for this statistics object by . @@ -6503,34 +7284,34 @@ SCRAM-SHA-256$<iteration count>:&l Positive values of stxstattarget determine the target number of most common values to collect. - + - stxkeys - int2vector - pg_attribute.attnum - + + stxkeys int2vector + (references pg_attribute.attnum) + + An array of attribute numbers, indicating which table columns are covered by this statistics object; for example a value of 1 3 would mean that the first and the third table columns are covered - + - stxkind - char[] - - - An array containing codes for the enabled statistic kinds; - valid values are: - d for n-distinct statistics, - f for functional dependency statistics, and - m for most common values (MCV) list statistics - + + stxkind char[] + + + An array containing codes for the enabled statistic kinds; + valid values are: + d for n-distinct statistics, + f for functional dependency statistics, and + m for most common values (MCV) list statistics + -
@@ -6576,55 +7357,57 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_statistic_ext_data</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - - stxoid - oid - pg_statistic_ext.oid - Extended statistic object containing the definition for this data + + stxoid oid + (references pg_statistic_ext.oid) + + + Extended statistic object containing the definition for this data + - stxdndistinct - pg_ndistinct - - + + stxdndistinct pg_ndistinct + + N-distinct counts, serialized as pg_ndistinct type - + - stxddependencies - pg_dependencies - - + + stxddependencies pg_dependencies + + Functional dependency statistics, serialized as pg_dependencies type - + - stxdmcv - pg_mcv_list - - + + stxdmcv pg_mcv_list + + MCV (most-common values) list statistics, serialized as pg_mcv_list type - + -
@@ -6658,86 +7441,104 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_subscription</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - subdbid - oid - pg_database.oid - OID of the database which the subscription resides in + + subdbid oid + (references pg_database.oid) + + + OID of the database which the subscription resides in + - subname - name - - Name of the subscription + + subname name + + + Name of the subscription + - subowner - oid - pg_authid.oid - Owner of the subscription + + subowner oid + (references pg_authid.oid) + + + Owner of the subscription + - subenabled - bool - - If true, the subscription is enabled and should be replicating. + + subenabled bool + + + If true, the subscription is enabled and should be replicating. + - subconninfo - text - - Connection string to the upstream database + + subconninfo text + + + Connection string to the upstream database + - subslotname - name - - Name of the replication slot in the upstream database. Also used - for local replication origin name. + + subslotname name + + + Name of the replication slot in the upstream database. Also used + for local replication origin name. + - subsynccommit - text - - + + subsynccommit text + + Contains the value of the synchronous_commit setting for the subscription workers. - + - subpublications - text[] - - Array of subscribed publication names. These reference the + + subpublications text[] + + + Array of subscribed publication names. These reference the publications on the publisher server. For more on publications see . - + @@ -6765,52 +7566,59 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_subscription_rel</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - srsubid - oid - pg_subscription.oid - Reference to subscription + + srsubid oid + (references pg_subscription.oid) + + + Reference to subscription + - srrelid - oid - pg_class.oid - Reference to relation + + srrelid oid + (references pg_class.oid) + + + Reference to relation + - srsubstate - char - - + + srsubstate char + + State code: i = initialize, d = data is being copied, s = synchronized, r = ready (normal replication) - + - srsublsn - pg_lsn - - + + srsublsn pg_lsn + + End LSN for s and r states. - + @@ -6839,55 +7647,63 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_tablespace</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - spcname - name - - Tablespace name + + spcname name + + + Tablespace name + - spcowner - oid - pg_authid.oid - Owner of the tablespace, usually the user who created it + + spcowner oid + (references pg_authid.oid) + + + Owner of the tablespace, usually the user who created it + - spcacl - aclitem[] - - + + spcacl aclitem[] + + Access privileges; see for details - + - spcoptions - text[] - - + + spcoptions text[] + + Tablespace-level options, as keyword=value strings - + @@ -6910,59 +7726,70 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_transform</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - trftype - oid - pg_type.oid - OID of the data type this transform is for + + trftype oid + (references pg_type.oid) + + + OID of the data type this transform is for + - trflang - oid - pg_language.oid - OID of the language this transform is for + + trflang oid + (references pg_language.oid) + + + OID of the language this transform is for + - trffromsql - regproc - pg_proc.oid - + + trffromsql regproc + (references pg_proc.oid) + + The OID of the function to use when converting the data type for input to the procedural language (e.g., function parameters). Zero is stored if this operation is not supported. - + - trftosql - regproc - pg_proc.oid - + + trftosql regproc + (references pg_proc.oid) + + The OID of the function to use when converting output from the procedural language (e.g., return values) to the data type. Zero is stored if this operation is not supported. - + @@ -6986,167 +7813,209 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_trigger</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - tgrelid - oid - pg_class.oid - The table this trigger is on + + tgrelid oid + (references pg_class.oid) + + + The table this trigger is on + - tgparentid - oid - pg_trigger.oid - + + tgparentid oid + (references pg_trigger.oid) + + Parent trigger that this trigger is cloned from, zero if not a clone; this happens when partitions are created or attached to a partitioned table. - + - tgname - name - - Trigger name (must be unique among triggers of same table) + + tgname name + + + Trigger name (must be unique among triggers of same table) + - tgfoid - oid - pg_proc.oid - The function to be called + + tgfoid oid + (references pg_proc.oid) + + + The function to be called + - tgtype - int2 - - Bit mask identifying trigger firing conditions + + tgtype int2 + + + Bit mask identifying trigger firing conditions + - tgenabled - char - - + + tgenabled char + + Controls in which modes the trigger fires. O = trigger fires in origin and local modes, D = trigger is disabled, R = trigger fires in replica mode, A = trigger fires always. - + - tgisinternal - bool - - True if trigger is internally generated (usually, to enforce - the constraint identified by tgconstraint) + + tgisinternal bool + + + True if trigger is internally generated (usually, to enforce + the constraint identified by tgconstraint) + - tgconstrrelid - oid - pg_class.oid - The table referenced by a referential integrity constraint + + tgconstrrelid oid + (references pg_class.oid) + + + The table referenced by a referential integrity constraint + - tgconstrindid - oid - pg_class.oid - The index supporting a unique, primary key, referential integrity, - or exclusion constraint + + tgconstrindid oid + (references pg_class.oid) + + + The index supporting a unique, primary key, referential integrity, + or exclusion constraint + - tgconstraint - oid - pg_constraint.oid - The pg_constraint entry associated with the trigger, if any + + tgconstraint oid + (references pg_constraint.oid) + + + The pg_constraint entry associated with the trigger, if any + - tgdeferrable - bool - - True if constraint trigger is deferrable + + tgdeferrable bool + + + True if constraint trigger is deferrable + - tginitdeferred - bool - - True if constraint trigger is initially deferred + + tginitdeferred bool + + + True if constraint trigger is initially deferred + - tgnargs - int2 - - Number of argument strings passed to trigger function + + tgnargs int2 + + + Number of argument strings passed to trigger function + - tgattr - int2vector - pg_attribute.attnum - Column numbers, if trigger is column-specific; otherwise an - empty array + + tgattr int2vector + (references pg_attribute.attnum) + + + Column numbers, if trigger is column-specific; otherwise an + empty array + - tgargs - bytea - - Argument strings to pass to trigger, each NULL-terminated + + tgargs bytea + + + Argument strings to pass to trigger, each NULL-terminated + - tgqual - pg_node_tree - - Expression tree (in nodeToString() + + tgqual pg_node_tree + + + Expression tree (in nodeToString() representation) for the trigger's WHEN condition, or null - if none + if none + - tgoldtable - name - - REFERENCING clause name for OLD TABLE, - or null if none + + tgoldtable name + + + REFERENCING clause name for OLD TABLE, + or null if none + - tgnewtable - name - - REFERENCING clause name for NEW TABLE, - or null if none + + tgnewtable name + + + REFERENCING clause name for NEW TABLE, + or null if none + @@ -7206,53 +8075,65 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_ts_config</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - cfgname - name - - Text search configuration name + + cfgname name + + + Text search configuration name + - cfgnamespace - oid - pg_namespace.oid - + + cfgnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this configuration - + - cfgowner - oid - pg_authid.oid - Owner of the configuration + + cfgowner oid + (references pg_authid.oid) + + + Owner of the configuration + - cfgparser - oid - pg_ts_parser.oid - The OID of the text search parser for this configuration + + cfgparser oid + (references pg_ts_parser.oid) + + + The OID of the text search parser for this configuration + @@ -7281,45 +8162,56 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_ts_config_map</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - mapcfg - oid - pg_ts_config.oid - The OID of the pg_ts_config entry owning this map entry + + mapcfg oid + (references pg_ts_config.oid) + + + The OID of the pg_ts_config entry owning this map entry + - maptokentype - integer - - A token type emitted by the configuration's parser + + maptokentype int4 + + + A token type emitted by the configuration's parser + - mapseqno - integer - - Order in which to consult this entry (lower - mapseqnos first) + + mapseqno int4 + + + Order in which to consult this entry (lower + mapseqnos first) + - mapdict - oid - pg_ts_dict.oid - The OID of the text search dictionary to consult + + mapdict oid + (references pg_ts_dict.oid) + + + The OID of the text search dictionary to consult + @@ -7352,60 +8244,74 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_ts_dict</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - dictname - name - - Text search dictionary name + + dictname name + + + Text search dictionary name + - dictnamespace - oid - pg_namespace.oid - + + dictnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this dictionary - + - dictowner - oid - pg_authid.oid - Owner of the dictionary + + dictowner oid + (references pg_authid.oid) + + + Owner of the dictionary + - dicttemplate - oid - pg_ts_template.oid - The OID of the text search template for this dictionary + + dicttemplate oid + (references pg_ts_template.oid) + + + The OID of the text search template for this dictionary + - dictinitoption - text - - Initialization option string for the template + + dictinitoption text + + + Initialization option string for the template + @@ -7435,74 +8341,95 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_ts_parser</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - prsname - name - - Text search parser name + + prsname name + + + Text search parser name + - prsnamespace - oid - pg_namespace.oid - + + prsnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this parser - + - prsstart - regproc - pg_proc.oid - OID of the parser's startup function + + prsstart regproc + (references pg_proc.oid) + + + OID of the parser's startup function + - prstoken - regproc - pg_proc.oid - OID of the parser's next-token function + + prstoken regproc + (references pg_proc.oid) + + + OID of the parser's next-token function + - prsend - regproc - pg_proc.oid - OID of the parser's shutdown function + + prsend regproc + (references pg_proc.oid) + + + OID of the parser's shutdown function + - prsheadline - regproc - pg_proc.oid - OID of the parser's headline function + + prsheadline regproc + (references pg_proc.oid) + + + OID of the parser's headline function + - prslextype - regproc - pg_proc.oid - OID of the parser's lextype function + + prslextype regproc + (references pg_proc.oid) + + + OID of the parser's lextype function + @@ -7532,53 +8459,65 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_ts_template</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - tmplname - name - - Text search template name + + tmplname name + + + Text search template name + - tmplnamespace - oid - pg_namespace.oid - + + tmplnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this template - + - tmplinit - regproc - pg_proc.oid - OID of the template's initialization function + + tmplinit regproc + (references pg_proc.oid) + + + OID of the template's initialization function + - tmpllexize - regproc - pg_proc.oid - OID of the template's lexize function + + tmpllexize regproc + (references pg_proc.oid) + + + OID of the template's lexize function + @@ -7606,66 +8545,75 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_type</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - typname - name - - Data type name + + typname name + + + Data type name + - typnamespace - oid - pg_namespace.oid - + + typnamespace oid + (references pg_namespace.oid) + + The OID of the namespace that contains this type - + - typowner - oid - pg_authid.oid - Owner of the type + + typowner oid + (references pg_authid.oid) + + + Owner of the type + - typlen - int2 - - + + typlen int2 + + For a fixed-size type, typlen is the number of bytes in the internal representation of the type. But for a variable-length type, typlen is negative. -1 indicates a varlena type (one that has a length word), -2 indicates a null-terminated C string. - + - typbyval - bool - - + + typbyval bool + + typbyval determines whether internal routines pass a value of this type by value or by reference. typbyval had better be false if @@ -7674,14 +8622,14 @@ SCRAM-SHA-256$<iteration count>:&l Variable-length types are always passed by reference. Note that typbyval can be false even if the length would allow pass-by-value. - + - typtype - char - - + + typtype char + + typtype is b for a base type, c for a composite type (e.g., a table's row type), @@ -7691,59 +8639,60 @@ SCRAM-SHA-256$<iteration count>:&l r for a range type. See also typrelid and typbasetype. - + - typcategory - char - - + + typcategory char + + typcategory is an arbitrary classification of data types that is used by the parser to determine which implicit casts should be preferred. See . - + - typispreferred - bool - - + + typispreferred bool + + True if the type is a preferred cast target within its typcategory - + - typisdefined - bool - - + + typisdefined bool + + True if the type is defined, false if this is a placeholder entry for a not-yet-defined type. When typisdefined is false, nothing except the type name, namespace, and OID can be relied on. - + - typdelim - char - - + + typdelim char + + Character that separates two values of this type when parsing array input. Note that the delimiter is associated with the array element data type, not the array data type. - + - typrelid - oid - pg_class.oid - + + typrelid oid + (references pg_class.oid) + + If this is a composite type (see typtype), then this column points to the pg_class entry that defines the @@ -7752,14 +8701,15 @@ SCRAM-SHA-256$<iteration count>:&l a table, but it is needed anyway for the type's pg_attribute entries to link to.) Zero for non-composite types. - + - typelem - oid - pg_type.oid - + + typelem oid + (references pg_type.oid) + + If typelem is not 0 then it identifies another row in pg_type. The current type can then be subscripted like an array yielding @@ -7774,75 +8724,96 @@ SCRAM-SHA-256$<iteration count>:&l typelem data type with no other data. Variable-length array types have a header defined by the array subroutines. - + - typarray - oid - pg_type.oid - + + typarray oid + (references pg_type.oid) + + If typarray is not 0 then it identifies another row in pg_type, which is the true array type having this type as element - + - typinput - regproc - pg_proc.oid - Input conversion function (text format) + + typinput regproc + (references pg_proc.oid) + + + Input conversion function (text format) + - typoutput - regproc - pg_proc.oid - Output conversion function (text format) + + typoutput regproc + (references pg_proc.oid) + + + Output conversion function (text format) + - typreceive - regproc - pg_proc.oid - Input conversion function (binary format), or 0 if none + + typreceive regproc + (references pg_proc.oid) + + + Input conversion function (binary format), or 0 if none + - typsend - regproc - pg_proc.oid - Output conversion function (binary format), or 0 if none + + typsend regproc + (references pg_proc.oid) + + + Output conversion function (binary format), or 0 if none + - typmodin - regproc - pg_proc.oid - Type modifier input function, or 0 if type does not support modifiers + + typmodin regproc + (references pg_proc.oid) + + + Type modifier input function, or 0 if type does not support modifiers + - typmodout - regproc - pg_proc.oid - Type modifier output function, or 0 to use the standard format + + typmodout regproc + (references pg_proc.oid) + + + Type modifier output function, or 0 to use the standard format + - typanalyze - regproc - pg_proc.oid - Custom ANALYZE function, or 0 to use the standard function + + typanalyze regproc + (references pg_proc.oid) + + + Custom ANALYZE function, or 0 to use the standard function + - typalign - char - - - + + typalign char + + typalign is the alignment required when storing a value of this type. It applies to storage on disk as well as most representations of the value inside @@ -7852,9 +8823,6 @@ SCRAM-SHA-256$<iteration count>:&l inserted before a datum of this type so that it begins on the specified boundary. The alignment reference is the beginning of the first datum in the sequence. - - - Possible values are: @@ -7870,21 +8838,14 @@ SCRAM-SHA-256$<iteration count>:&l d = double alignment (8 bytes on many machines, but by no means all). - - - For types used in system tables, it is critical that the size - and alignment defined in pg_type - agree with the way that the compiler will lay out the column in - a structure representing a table row. - - + - typstorage - char - - + + typstorage char + + typstorage tells for varlena types (those with typlen = -1) if the type is prepared for toasting and what the default strategy @@ -7925,20 +8886,21 @@ SCRAM-SHA-256$<iteration count>:&l - typnotnull - bool - - + + typnotnull bool + + typnotnull represents a not-null constraint on a type. Used for domains only. - typbasetype - oid - pg_type.oid - + + typbasetype oid + (references pg_type.oid) + + If this is a domain (see typtype), then typbasetype identifies the type that this one is based on. Zero if this type is not a domain. @@ -7946,10 +8908,10 @@ SCRAM-SHA-256$<iteration count>:&l - typtypmod - int4 - - + + typtypmod int4 + + Domains use typtypmod to record the typmod to be applied to their base type (-1 if base type does not use a typmod). -1 if this type is not a domain. @@ -7957,22 +8919,23 @@ SCRAM-SHA-256$<iteration count>:&l - typndims - int4 - - + + typndims int4 + + typndims is the number of array dimensions for a domain over an array (that is, typbasetype is an array type). Zero for types other than domains over array types. - + - typcollation - oid - pg_collation.oid - + + typcollation oid + (references pg_collation.oid) + + typcollation specifies the collation of the type. If the type does not support collations, this will be zero. A base type that supports collations will have a nonzero @@ -7983,10 +8946,10 @@ SCRAM-SHA-256$<iteration count>:&l - typdefaultbin - pg_node_tree - - + + typdefaultbin pg_node_tree + + If typdefaultbin is not null, it is the nodeToString() representation of a default expression for the type. This is @@ -7995,10 +8958,10 @@ SCRAM-SHA-256$<iteration count>:&l - typdefault - text - - + + typdefault text + + typdefault is null if the type has no associated default value. If typdefaultbin is not null, typdefault must contain a human-readable version of the @@ -8011,17 +8974,26 @@ SCRAM-SHA-256$<iteration count>:&l - typacl - aclitem[] - - + + typacl aclitem[] + + Access privileges; see for details - +
+ + + For fixed-width types used in system tables, it is critical that the size + and alignment defined in pg_type + agree with the way that the compiler will lay out the column in + a structure representing a table row. + + + lists the system-defined values of typcategory. Any future additions to this list will @@ -8125,48 +9097,55 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_user_mapping</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - oid - oid - - Row identifier + + oid oid + + + Row identifier + - umuser - oid - pg_authid.oid - OID of the local role being mapped, 0 if the user mapping is public + + umuser oid + (references pg_authid.oid) + + + OID of the local role being mapped, 0 if the user mapping is public + - umserver - oid - pg_foreign_server.oid - + + umserver oid + (references pg_foreign_server.oid) + + The OID of the foreign server that contains this mapping - + - umoptions - text[] - - + + umoptions text[] + + User mapping specific options, as keyword=value strings - + @@ -8394,41 +9373,55 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_available_extensions</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + - name - name - Extension name + + name name + + + Extension name + - default_version - text - Name of default version, or NULL if none is - specified + + default_version text + + + Name of default version, or NULL if none is + specified + - installed_version - text - Currently installed version of the extension, - or NULL if not installed + + installed_version text + + + Currently installed version of the extension, + or NULL if not installed + - comment - text - Comment string from the extension's control file + + comment text + + + Comment string from the extension's control file + @@ -8456,74 +9449,103 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_available_extension_versions</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + - name - name - Extension name + + name name + + + Extension name + - version - text - Version name + + version text + + + Version name + - installed - bool - True if this version of this extension is currently - installed + + installed bool + + + True if this version of this extension is currently + installed + - superuser - bool - True if only superusers are allowed to install this extension - (but see trusted) + + superuser bool + + + True if only superusers are allowed to install this extension + (but see trusted) + - trusted - bool - True if the extension can be installed by non-superusers - with appropriate privileges + + trusted bool + + + True if the extension can be installed by non-superusers + with appropriate privileges + - relocatable - bool - True if extension can be relocated to another schema + + relocatable bool + + + True if extension can be relocated to another schema + - schema - name - Name of the schema that the extension must be installed into, - or NULL if partially or fully relocatable + + schema name + + + Name of the schema that the extension must be installed into, + or NULL if partially or fully relocatable + - requires - name[] - Names of prerequisite extensions, - or NULL if none + + requires name[] + + + Names of prerequisite extensions, + or NULL if none + - comment - text - Comment string from the extension's control file + + comment text + + + Comment string from the extension's control file + @@ -8560,26 +9582,35 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_config</structname> Columns - + - Name - Type - Description + + Column Type + + + Description + - name - text - The parameter name + + name text + + + The parameter name + - setting - text - The parameter value + + setting text + + + The parameter value + @@ -8639,63 +9670,77 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_cursors</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + - name - text - The name of the cursor + + name text + + + The name of the cursor + - statement - text - The verbatim query string submitted to declare this cursor + + statement text + + + The verbatim query string submitted to declare this cursor + - is_holdable - boolean - + + is_holdable bool + + true if the cursor is holdable (that is, it can be accessed after the transaction that declared the cursor has committed); false otherwise - + - is_binary - boolean - + + is_binary bool + + true if the cursor was declared BINARY; false otherwise - + - is_scrollable - boolean - + + is_scrollable bool + + true if the cursor is scrollable (that is, it allows rows to be retrieved in a nonsequential manner); false otherwise - + - creation_time - timestamptz - The time at which the cursor was declared + + creation_time timestamptz + + + The time at which the cursor was declared + @@ -8739,56 +9784,84 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_file_settings</structname> Columns + + + + + Column Type + + + Description + + + - - - - Name - Type - Description - - - - - sourcefile - text - Full path name of the configuration file - - - sourceline - integer - - Line number within the configuration file where the entry appears - - - - seqno - integer - Order in which the entries are processed (1..n) - - - name - text - Configuration parameter name - - - setting - text - Value to be assigned to the parameter - - - applied - boolean - True if the value can be applied successfully - - - error - text - If not null, an error message indicating why this entry could - not be applied - - - + + + + sourcefile text + + + Full path name of the configuration file + + + + + + sourceline int4 + + + Line number within the configuration file where the entry appears + + + + + + seqno int4 + + + Order in which the entries are processed (1..n) + + + + + + name text + + + Configuration parameter name + + + + + + setting text + + + Value to be assigned to the parameter + + + + + + applied bool + + + True if the value can be applied successfully + + + + + + error text + + + If not null, an error message indicating why this entry could + not be applied + + + +
@@ -8832,37 +9905,47 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_group</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - groname - name - pg_authid.rolname - Name of the group + + groname name + (references pg_authid.rolname) + + + Name of the group + - grosysid - oid - pg_authid.oid - ID of this group + + grosysid oid + (references pg_authid.oid) + + + ID of this group + - grolist - oid[] - pg_authid.oid - An array containing the IDs of the roles in this group + + grolist oid[] + (references pg_authid.oid) + + + An array containing the IDs of the roles in this group + @@ -8899,72 +9982,104 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_hba_file_rules</structname> Columns + + + + + Column Type + + + Description + + + - - - - Name - Type - Description - - - - - line_number - integer - - Line number of this rule in pg_hba.conf - - - - type - text - Type of connection - - - database - text[] - List of database name(s) to which this rule applies - - - user_name - text[] - List of user and group name(s) to which this rule applies - - - address - text - - Host name or IP address, or one - of all, samehost, - or samenet, or null for local connections - - - - netmask - text - IP address mask, or null if not applicable - - - auth_method - text - Authentication method - - - options - text[] - Options specified for authentication method, if any - - - error - text - - If not null, an error message indicating why this - line could not be processed - - - - + + + + line_number int4 + + + Line number of this rule in pg_hba.conf + + + + + + type text + + + Type of connection + + + + + + database text[] + + + List of database name(s) to which this rule applies + + + + + + user_name text[] + + + List of user and group name(s) to which this rule applies + + + + + + address text + + + Host name or IP address, or one + of all, samehost, + or samenet, or null for local connections + + + + + + netmask text + + + IP address mask, or null if not applicable + + + + + + auth_method text + + + Authentication method + + + + + + options text[] + + + Options specified for authentication method, if any + + + + + + error text + + + If not null, an error message indicating why this + line could not be processed + + + +
@@ -8992,47 +10107,67 @@ SCRAM-SHA-256$<iteration count>:&l <structname>pg_indexes</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing table and index + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing table and index + + - tablename - name - pg_class.relname - Name of table the index is for + + tablename name + (references pg_class.relname) + + + Name of table the index is for + + - indexname - name - pg_class.relname - Name of index + + indexname name + (references pg_class.relname) + + + Name of index + + - tablespace - name - pg_tablespace.spcname - Name of tablespace containing index (null if default for database) + + tablespace name + (references pg_tablespace.spcname) + + + Name of tablespace containing index (null if default for database) + + - indexdef - text - - Index definition (a reconstructed CREATE INDEX - command) + + indexdef text + + + Index definition (a reconstructed CREATE INDEX + command) + @@ -9078,22 +10213,24 @@ SCRAM-SHA-256$<iteration count>:&l
<structname>pg_locks</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - locktype - text - - + + locktype text + + Type of the lockable object: relation, extend, @@ -9104,129 +10241,152 @@ SCRAM-SHA-256$<iteration count>:&l object, userlock, or advisory - + + - database - oid - pg_database.oid - + + database oid + (references pg_database.oid) + + OID of the database in which the lock target exists, or zero if the target is a shared object, or null if the target is a transaction ID - + + - relation - oid - pg_class.oid - + + relation oid + (references pg_class.oid) + + OID of the relation targeted by the lock, or null if the target is not a relation or part of a relation - + + - page - integer - - + + page int4 + + Page number targeted by the lock within the relation, or null if the target is not a relation page or tuple - + + - tuple - smallint - - + + tuple int2 + + Tuple number targeted by the lock within the page, or null if the target is not a tuple - + + - virtualxid - text - - + + virtualxid text + + Virtual ID of the transaction targeted by the lock, or null if the target is not a virtual transaction ID - + + - transactionid - xid - - + + transactionid xid + + ID of the transaction targeted by the lock, or null if the target is not a transaction ID - + + - classid - oid - pg_class.oid - + + classid oid + (references pg_class.oid) + + OID of the system catalog containing the lock target, or null if the target is not a general database object - + + - objid - oid - any OID column - + + objid oid + (references any OID column) + + OID of the lock target within its system catalog, or null if the target is not a general database object - + + - objsubid - smallint - - + + objsubid int2 + + Column number targeted by the lock (the classid and objid refer to the table itself), or zero if the target is some other general database object, or null if the target is not a general database object - + + - virtualtransaction - text - - + + virtualtransaction text + + Virtual ID of the transaction that is holding or awaiting this lock - + + - pid - integer - - + + pid int4 + + Process ID of the server process holding or awaiting this lock, or null if the lock is held by a prepared transaction - + + - mode - text - - Name of the lock mode held or desired by this process (see and ) + + mode text + + + Name of the lock mode held or desired by this process (see and ) + + - granted - boolean - - True if lock is held, false if lock is awaited + + granted bool + + + True if lock is held, false if lock is awaited + + - fastpath - boolean - - True if lock was taken via fast path, false if taken via main - lock table + + fastpath bool + + + True if lock was taken via fast path, false if taken via main + lock table + @@ -9379,58 +10539,84 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_matviews</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing materialized view + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing materialized view + + - matviewname - name - pg_class.relname - Name of materialized view + + matviewname name + (references pg_class.relname) + + + Name of materialized view + + - matviewowner - name - pg_authid.rolname - Name of materialized view's owner + + matviewowner name + (references pg_authid.rolname) + + + Name of materialized view's owner + + - tablespace - name - pg_tablespace.spcname - Name of tablespace containing materialized view (null if default for database) + + tablespace name + (references pg_tablespace.spcname) + + + Name of tablespace containing materialized view (null if default for database) + + - hasindexes - boolean - - True if materialized view has (or recently had) any indexes + + hasindexes bool + + + True if materialized view has (or recently had) any indexes + + - ispopulated - boolean - - True if materialized view is currently populated + + ispopulated bool + + + True if materialized view is currently populated + + - definition - text - - Materialized view definition (a reconstructed SELECT query) + + definition text + + + Materialized view definition (a reconstructed SELECT query) + @@ -9452,66 +10638,94 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_policies</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing table policy is on + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing table policy is on + + - tablename - name - pg_class.relname - Name of table policy is on + + tablename name + (references pg_class.relname) + + + Name of table policy is on + + - policyname - name - pg_policy.polname - Name of policy + + policyname name + (references pg_policy.polname) + + + Name of policy + + - permissive - text - - Is the policy permissive or restrictive? + + permissive text + + + Is the policy permissive or restrictive? + + - roles - name[] - - The roles to which this policy applies + + roles name[] + + + The roles to which this policy applies + + - cmd - text - - The command type to which the policy is applied + + cmd text + + + The command type to which the policy is applied + + - qual - text - - The expression added to the security barrier qualifications for - queries that this policy applies to + + qual text + + + The expression added to the security barrier qualifications for + queries that this policy applies to + + - with_check - text - - The expression added to the WITH CHECK qualifications for - queries that attempt to add rows to this table + + with_check text + + + The expression added to the WITH CHECK qualifications for + queries that attempt to add rows to this table + @@ -9542,61 +10756,73 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_prepared_statements</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + + - name - text - + + name text + + The identifier of the prepared statement - + + - statement - text - + + statement text + + The query string submitted by the client to create this prepared statement. For prepared statements created via SQL, this is the PREPARE statement submitted by the client. For prepared statements created via the frontend/backend protocol, this is the text of the prepared statement itself. - + + - prepare_time - timestamptz - + + prepare_time timestamptz + + The time at which the prepared statement was created - + + - parameter_types - regtype[] - + + parameter_types regtype[] + + The expected parameter types for the prepared statement in the form of an array of regtype. The OID corresponding to an element of this array can be obtained by casting the regtype value to oid. - + + - from_sql - boolean - + + from_sql bool + + true if the prepared statement was created via the PREPARE SQL command; false if the statement was prepared via the frontend/backend protocol - + @@ -9628,56 +10854,64 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_prepared_xacts</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - transaction - xid - - + + transaction xid + + Numeric transaction identifier of the prepared transaction - + + - gid - text - - + + gid text + + Global transaction identifier that was assigned to the transaction - + + - prepared - timestamp with time zone - - + + prepared timestamptz + + Time at which the transaction was prepared for commit - + + - owner - name - pg_authid.rolname - + + owner name + (references pg_authid.rolname) + + Name of the user that executed the transaction - + + - database - name - pg_database.datname - + + database name + (references pg_database.datname) + + Name of the database in which the transaction was executed - + @@ -9713,37 +10947,47 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_publication_tables</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - pubname - name - pg_publication.pubname - Name of publication + + pubname name + (references pg_publication.pubname) + + + Name of publication + - schemaname - name - pg_namespace.nspname - Name of schema containing table + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing table + - tablename - name - pg_class.relname - Name of table + + tablename name + (references pg_class.relname) + + + Name of table + @@ -9765,50 +11009,58 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
- <structname>pg_replication_origin_status</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - local_id - Oid - pg_replication_origin.roident - internal node identifier + + local_id oid + (references pg_replication_origin.roident) + + + internal node identifier + - external_id - text - pg_replication_origin.roname - external node identifier + + external_id text + (references pg_replication_origin.roname) + + + external node identifier + - remote_lsn - pg_lsn - - The origin node's LSN up to which data has been replicated. + + remote_lsn pg_lsn + + + The origin node's LSN up to which data has been replicated. + - local_lsn - pg_lsn - - + + local_lsn pg_lsn + + This node's LSN at which remote_lsn has been replicated. Used to flush commit records before persisting data to disk when using asynchronous commits. - + @@ -9834,162 +11086,184 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
- <structname>pg_replication_slots</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - slot_name - name - - A unique, cluster-wide identifier for the replication slot + + slot_name name + + + A unique, cluster-wide identifier for the replication slot + - plugin - name - - The base name of the shared object containing the output plugin this logical slot is using, or null for physical slots. + + plugin name + + + The base name of the shared object containing the output plugin this logical slot is using, or null for physical slots. + - slot_type - text - - The slot type: physical or logical + + slot_type text + + + The slot type: physical or logical + - datoid - oid - pg_database.oid - The OID of the database this slot is associated with, or - null. Only logical slots have an associated database. + + datoid oid + (references pg_database.oid) + + + The OID of the database this slot is associated with, or + null. Only logical slots have an associated database. + - database - name - pg_database.datname - The name of the database this slot is associated with, or - null. Only logical slots have an associated database. + + database name + (references pg_database.datname) + + + The name of the database this slot is associated with, or + null. Only logical slots have an associated database. + - temporary - boolean - - True if this is a temporary replication slot. Temporary slots are - not saved to disk and are automatically dropped on error or when - the session has finished. + + temporary bool + + + True if this is a temporary replication slot. Temporary slots are + not saved to disk and are automatically dropped on error or when + the session has finished. + - active - boolean - - True if this slot is currently actively being used + + active bool + + + True if this slot is currently actively being used + - active_pid - integer - - The process ID of the session using this slot if the slot + + active_pid int4 + + + The process ID of the session using this slot if the slot is currently actively being used. NULL if inactive. - + - xmin - xid - - The oldest transaction that this slot needs the database to - retain. VACUUM cannot remove tuples deleted - by any later transaction. - + + xmin xid + + + The oldest transaction that this slot needs the database to + retain. VACUUM cannot remove tuples deleted + by any later transaction. + - catalog_xmin - xid - - The oldest transaction affecting the system catalogs that this - slot needs the database to retain. VACUUM cannot - remove catalog tuples deleted by any later transaction. - + + catalog_xmin xid + + + The oldest transaction affecting the system catalogs that this + slot needs the database to retain. VACUUM cannot + remove catalog tuples deleted by any later transaction. + - restart_lsn - pg_lsn - - The address (LSN) of oldest WAL which still - might be required by the consumer of this slot and thus won't be - automatically removed during checkpoints. NULL - if the LSN of this slot has never been reserved. - + + restart_lsn pg_lsn + + + The address (LSN) of oldest WAL which still + might be required by the consumer of this slot and thus won't be + automatically removed during checkpoints. NULL + if the LSN of this slot has never been reserved. + - confirmed_flush_lsn - pg_lsn - - The address (LSN) up to which the logical - slot's consumer has confirmed receiving data. Data older than this is - not available anymore. NULL for physical slots. - + + confirmed_flush_lsn pg_lsn + + + The address (LSN) up to which the logical + slot's consumer has confirmed receiving data. Data older than this is + not available anymore. NULL for physical slots. + - wal_status - text - - - Availability of WAL files claimed by this slot. - Possible values are: - - - normal means that the claimed files - are within max_wal_size - - - reserved means that max_wal_size - is exceeded but the files are still held, either by some replication - slot or by wal_keep_segments - - - lost means that some WAL files are definitely lost - and this slot cannot be used to resume replication anymore. - - - The last two states are seen only when - is - non-negative. If restart_lsn is NULL, this - field is null. - + + wal_status text + + + Availability of WAL files claimed by this slot. + Possible values are: + + + normal means that the claimed files + are within max_wal_size. + + + reserved means + that max_wal_size is exceeded but the files are + still held, either by some replication slot or + by wal_keep_segments. + + + lost means that some WAL files are + definitely lost and this slot cannot be used to resume replication + anymore. + + + The last two states are seen only when + is + non-negative. If restart_lsn is NULL, this + field is null. + - min_safe_lsn - pg_lsn - - + + min_safe_lsn pg_lsn + + The minimum LSN currently available for walsenders. - + -
@@ -10012,121 +11286,141 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx <structname>pg_roles</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - rolname - name - - Role name + + rolname name + + + Role name + - rolsuper - bool - - Role has superuser privileges + + rolsuper bool + + + Role has superuser privileges + - rolinherit - bool - - Role automatically inherits privileges of roles it is a - member of + + rolinherit bool + + + Role automatically inherits privileges of roles it is a + member of + - rolcreaterole - bool - - Role can create more roles + + rolcreaterole bool + + + Role can create more roles + - rolcreatedb - bool - - Role can create databases + + rolcreatedb bool + + + Role can create databases + - rolcanlogin - bool - - + + rolcanlogin bool + + Role can log in. That is, this role can be given as the initial session authorization identifier - + - rolreplication - bool - - + + rolreplication bool + + Role is a replication role. A replication role can initiate replication connections and create and drop replication slots. - + - rolconnlimit - int4 - - + + rolconnlimit int4 + + For roles that can log in, this sets maximum number of concurrent connections this role can make. -1 means no limit. - + - rolpassword - text - - Not the password (always reads as ********) + + rolpassword text + + + Not the password (always reads as ********) + - rolvaliduntil - timestamptz - - Password expiry time (only used for password authentication); - null if no expiration + + rolvaliduntil timestamptz + + + Password expiry time (only used for password authentication); + null if no expiration + - rolbypassrls - bool - - + + rolbypassrls bool + + Role bypasses every row level security policy, see for more information. - + - rolconfig - text[] - - Role-specific defaults for run-time configuration variables + + rolconfig text[] + + + Role-specific defaults for run-time configuration variables + - oid - oid - pg_authid.oid - ID of role + + oid oid + (references pg_authid.oid) + + + ID of role + @@ -10148,40 +11442,56 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_rules</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing table + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing table + + - tablename - name - pg_class.relname - Name of table the rule is for + + tablename name + (references pg_class.relname) + + + Name of table the rule is for + + - rulename - name - pg_rewrite.rulename - Name of rule + + rulename name + (references pg_rewrite.rulename) + + + Name of rule + + - definition - text - - Rule definition (a reconstructed creation command) + + definition text + + + Rule definition (a reconstructed creation command) + @@ -10210,76 +11520,98 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_seclabels</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - objoid - oid - any OID column - The OID of the object this security label pertains to + + objoid oid + (references any OID column) + + + The OID of the object this security label pertains to + + - classoid - oid - pg_class.oid - The OID of the system catalog this object appears in + + classoid oid + (references pg_class.oid) + + + The OID of the system catalog this object appears in + + - objsubid - int4 - - + + objsubid int4 + + For a security label on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero. - + + - objtype - text - - - The type of object to which this label applies, as text. - + + objtype text + + + The type of object to which this label applies, as text. + + - objnamespace - oid - pg_namespace.oid - + + objnamespace oid + (references pg_namespace.oid) + + The OID of the namespace for this object, if applicable; otherwise NULL. - + + - objname - text - - + + objname text + + The name of the object to which this label applies, as text. - + + - provider - text - pg_seclabel.provider - The label provider associated with this label. + + provider text + (references pg_seclabel.provider) + + + The label provider associated with this label. + + - label - text - pg_seclabel.label - The security label applied to this object. + + label text + (references pg_seclabel.label) + + + The security label applied to this object. + @@ -10300,87 +11632,125 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_sequences</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing sequence + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing sequence + + - sequencename - name - pg_class.relname - Name of sequence + + sequencename name + (references pg_class.relname) + + + Name of sequence + + - sequenceowner - name - pg_authid.rolname - Name of sequence's owner + + sequenceowner name + (references pg_authid.rolname) + + + Name of sequence's owner + + - data_type - regtype - pg_type.oid - Data type of the sequence + + data_type regtype + (references pg_type.oid) + + + Data type of the sequence + + - start_value - bigint - - Start value of the sequence + + start_value int8 + + + Start value of the sequence + + - min_value - bigint - - Minimum value of the sequence + + min_value int8 + + + Minimum value of the sequence + + - max_value - bigint - - Maximum value of the sequence + + max_value int8 + + + Maximum value of the sequence + + - increment_by - bigint - - Increment value of the sequence + + increment_by int8 + + + Increment value of the sequence + + - cycle - boolean - - Whether the sequence cycles + + cycle bool + + + Whether the sequence cycles + + - cache_size - bigint - - Cache size of the sequence + + cache_size int8 + + + Cache size of the sequence + + - last_value - bigint - - The last sequence value written to disk. If caching is used, + + last_value int8 + + + The last sequence value written to disk. If caching is used, this value can be greater than the last value handed out from the sequence. Null if the sequence has not been read from yet. Also, if the current user does not have USAGE or SELECT privilege on the sequence, the value is - null. + null. + @@ -10406,118 +11776,185 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_settings</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + + - name - text - Run-time configuration parameter name + + name text + + + Run-time configuration parameter name + + - setting - text - Current value of the parameter + + setting text + + + Current value of the parameter + + - unit - text - Implicit unit of the parameter + + unit text + + + Implicit unit of the parameter + + - category - text - Logical group of the parameter + + category text + + + Logical group of the parameter + + - short_desc - text - A brief description of the parameter + + short_desc text + + + A brief description of the parameter + + - extra_desc - text - Additional, more detailed, description of the parameter + + extra_desc text + + + Additional, more detailed, description of the parameter + + - context - text - Context required to set the parameter's value (see below) + + context text + + + Context required to set the parameter's value (see below) + + - vartype - text - Parameter type (bool, enum, + + vartype text + + + Parameter type (bool, enum, integer, real, or string) - + + - source - text - Source of the current parameter value + + source text + + + Source of the current parameter value + + - min_val - text - Minimum allowed value of the parameter (null for non-numeric - values) + + min_val text + + + Minimum allowed value of the parameter (null for non-numeric + values) + + - max_val - text - Maximum allowed value of the parameter (null for non-numeric - values) + + max_val text + + + Maximum allowed value of the parameter (null for non-numeric + values) + + - enumvals - text[] - Allowed values of an enum parameter (null for non-enum - values) + + enumvals text[] + + + Allowed values of an enum parameter (null for non-enum + values) + + - boot_val - text - Parameter value assumed at server startup if the parameter is - not otherwise set + + boot_val text + + + Parameter value assumed at server startup if the parameter is + not otherwise set + + - reset_val - text - Value that RESET would reset the parameter to - in the current session + + reset_val text + + + Value that RESET would reset the parameter to + in the current session + + - sourcefile - text - Configuration file the current value was set in (null for - values set from sources other than configuration files, or when - examined by a user who is neither a superuser or a member of - pg_read_all_settings); helpful when using - include directives in configuration files + + sourcefile text + + + Configuration file the current value was set in (null for + values set from sources other than configuration files, or when + examined by a user who is neither a superuser or a member of + pg_read_all_settings); helpful when using + include directives in configuration files + + - sourceline - integer - Line number within the configuration file the current value was - set at (null for values set from sources other than configuration files, - or when examined by a user who is neither a superuser or a member of - pg_read_all_settings). - + + sourceline int4 + + + Line number within the configuration file the current value was + set at (null for values set from sources other than configuration files, + or when examined by a user who is neither a superuser or a member of + pg_read_all_settings). + + - pending_restart - boolean - true if the value has been changed in the - configuration file but needs a restart; or false - otherwise. - + + pending_restart bool + + + true if the value has been changed in the + configuration file but needs a restart; or false + otherwise. + @@ -10681,87 +12118,104 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_shadow</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - usename - name - pg_authid.rolname - User name + + usename name + (references pg_authid.rolname) + + + User name + - usesysid - oid - pg_authid.oid - ID of this user + + usesysid oid + (references pg_authid.oid) + + + ID of this user + - usecreatedb - bool - - User can create databases + + usecreatedb bool + + + User can create databases + - usesuper - bool - - User is a superuser + + usesuper bool + + + User is a superuser + - userepl - bool - - + + userepl bool + + User can initiate streaming replication and put the system in and out of backup mode. - + - usebypassrls - bool - - + + usebypassrls bool + + User bypasses every row level security policy, see for more information. - + - passwd - text - - Password (possibly encrypted); null if none. See - pg_authid - for details of how encrypted passwords are stored. + + passwd text + + + Password (possibly encrypted); null if none. See + pg_authid + for details of how encrypted passwords are stored. + - valuntil - timestamptz - - Password expiry time (only used for password authentication) + + valuntil timestamptz + + + Password expiry time (only used for password authentication) + - useconfig - text[] - - Session defaults for run-time configuration variables + + useconfig text[] + + + Session defaults for run-time configuration variables + @@ -10791,46 +12245,60 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_shmem_allocations</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + - name - text - The name of the shared memory allocation. NULL for unused memory - and <anonymous> for anonymous - allocations. + + name text + + + The name of the shared memory allocation. NULL for unused memory + and <anonymous> for anonymous + allocations. + - off - bigint - The offset at which the allocation starts. NULL for anonymous - allocations and unused memory. + + off int8 + + + The offset at which the allocation starts. NULL for anonymous + allocations and unused memory. + - size - bigint - Size of the allocation + + size int8 + + + Size of the allocation + - allocated_size - bigint - Size of the allocation including padding. For anonymous - allocations, no information about padding is available, so the - size and allocated_size columns - will always be equal. Padding is not meaningful for free memory, so - the columns will be equal in that case also. + + allocated_size int8 + + + Size of the allocation including padding. For anonymous + allocations, no information about padding is available, so the + size and allocated_size columns + will always be equal. Padding is not meaningful for free memory, so + the columns will be equal in that case also. + @@ -10875,65 +12343,82 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_stats</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing table + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing table + - tablename - name - pg_class.relname - Name of table + + tablename name + (references pg_class.relname) + + + Name of table + - attname - name - pg_attribute.attname - Name of the column described by this row + + attname name + (references pg_attribute.attname) + + + Name of the column described by this row + - inherited - bool - - If true, this row includes inheritance child columns, not just the - values in the specified table + + inherited bool + + + If true, this row includes inheritance child columns, not just the + values in the specified table + - null_frac - real - - Fraction of column entries that are null + + null_frac float4 + + + Fraction of column entries that are null + - avg_width - integer - - Average width in bytes of column's entries + + avg_width int4 + + + Average width in bytes of column's entries + - n_distinct - real - - + + n_distinct float4 + + If greater than zero, the estimated number of distinct values in the column. If less than zero, the negative of the number of distinct values divided by the number of rows. (The negated form is used when @@ -10942,35 +12427,35 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx the column seems to have a fixed number of possible values.) For example, -1 indicates a unique column in which the number of distinct values is the same as the number of rows. - + - most_common_vals - anyarray - - + + most_common_vals anyarray + + A list of the most common values in the column. (Null if no values seem to be more common than any others.) - + - most_common_freqs - real[] - - + + most_common_freqs float4[] + + A list of the frequencies of the most common values, i.e., number of occurrences of each divided by total number of rows. (Null when most_common_vals is.) - + - histogram_bounds - anyarray - - + + histogram_bounds anyarray + + A list of values that divide the column's values into groups of approximately equal population. The values in most_common_vals, if present, are omitted from this @@ -10978,56 +12463,56 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx does not have a < operator or if the most_common_vals list accounts for the entire population.) - + - correlation - real - - + + correlation float4 + + Statistical correlation between physical row ordering and logical ordering of the column values. This ranges from -1 to +1. When the value is near -1 or +1, an index scan on the column will be estimated to be cheaper than when it is near zero, due to reduction of random access to the disk. (This column is null if the column data type does not have a < operator.) - + - most_common_elems - anyarray - - + + most_common_elems anyarray + + A list of non-null element values most often appearing within values of the column. (Null for scalar types.) - + - most_common_elem_freqs - real[] - - + + most_common_elem_freqs float4[] + + A list of the frequencies of the most common element values, i.e., the fraction of rows containing at least one instance of the given value. Two or three additional values follow the per-element frequencies; these are the minimum and maximum of the preceding per-element frequencies, and optionally the frequency of null elements. (Null when most_common_elems is.) - + - elem_count_histogram - real[] - - + + elem_count_histogram float4[] + + A histogram of the counts of distinct non-null element values within the values of the column, followed by the average number of distinct non-null elements. (Null for scalar types.) - + @@ -11069,71 +12554,94 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_stats_ext</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing table + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing table + - tablename - name - pg_class.relname - Name of table + + tablename name + (references pg_class.relname) + + + Name of table + - statistics_schemaname - name - pg_namespace.nspname - Name of schema containing extended statistic + + statistics_schemaname name + (references pg_namespace.nspname) + + + Name of schema containing extended statistic + - statistics_name - name - pg_statistic_ext.stxname - Name of extended statistics + + statistics_name name + (references pg_statistic_ext.stxname) + + + Name of extended statistics + - statistics_owner - name - pg_authid.rolname - Owner of the extended statistics + + statistics_owner name + (references pg_authid.rolname) + + + Owner of the extended statistics + - attnames - name[] - pg_attribute.attname - Names of the columns the extended statistics is defined on + + attnames name[] + (references pg_attribute.attname) + + + Names of the columns the extended statistics is defined on + - kinds - char[] - - Types of extended statistics enabled for this record + + kinds char[] + + + Types of extended statistics enabled for this record + - n_distinct - pg_ndistinct - - N-distinct counts for combinations of column values. If greater + + n_distinct pg_ndistinct + + + N-distinct counts for combinations of column values. If greater than zero, the estimated number of distinct values in the combination. If less than zero, the negative of the number of distinct values divided by the number of rows. @@ -11143,56 +12651,58 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx of possible values.) For example, -1 indicates a unique combination of columns in which the number of distinct combinations is the same as the number of rows. - + - dependencies - pg_dependencies - - Functional dependency statistics + + dependencies pg_dependencies + + + Functional dependency statistics + - most_common_vals - text[] - - + + most_common_vals text[] + + A list of the most common combinations of values in the columns. (Null if no combinations seem to be more common than any others.) - + - most_common_val_nulls - bool[] - - + + most_common_val_nulls bool[] + + A list of NULL flags for the most common combinations of values. (Null when most_common_vals is.) - + - most_common_freqs - float8[] - - + + most_common_freqs float8[] + + A list of the frequencies of the most common combinations, i.e., number of occurrences of each divided by total number of rows. (Null when most_common_vals is.) - + - most_common_base_freqs - float8[] - - + + most_common_base_freqs float8[] + + A list of the base frequencies of the most common combinations, i.e., product of per-value frequencies. (Null when most_common_vals is.) - + @@ -11221,64 +12731,97 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_tables</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing table + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing table + + - tablename - name - pg_class.relname - Name of table + + tablename name + (references pg_class.relname) + + + Name of table + + - tableowner - name - pg_authid.rolname - Name of table's owner + + tableowner name + (references pg_authid.rolname) + + + Name of table's owner + + - tablespace - name - pg_tablespace.spcname - Name of tablespace containing table (null if default for database) + + tablespace name + (references pg_tablespace.spcname) + + + Name of tablespace containing table (null if default for database) + + - hasindexes - boolean - pg_class.relhasindex - True if table has (or recently had) any indexes + + hasindexes bool + (references pg_class.relhasindex) + + + True if table has (or recently had) any indexes + + - hasrules - boolean - pg_class.relhasrules - True if table has (or once had) rules + + hasrules bool + (references pg_class.relhasrules) + + + True if table has (or once had) rules + + - hastriggers - boolean - pg_class.relhastriggers - True if table has (or once had) triggers + + hastriggers bool + (references pg_class.relhastriggers) + + + True if table has (or once had) triggers + + - rowsecurity - boolean - pg_class.relrowsecurity - True if row security is enabled on the table + + rowsecurity bool + (references pg_class.relrowsecurity) + + + True if row security is enabled on the table + @@ -11302,30 +12845,44 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_timezone_abbrevs</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + + - abbrev - text - Time zone abbreviation + + abbrev text + + + Time zone abbreviation + + - utc_offset - interval - Offset from UTC (positive means east of Greenwich) + + utc_offset interval + + + Offset from UTC (positive means east of Greenwich) + + - is_dst - boolean - True if this is a daylight-savings abbreviation + + is_dst bool + + + True if this is a daylight-savings abbreviation + @@ -11363,35 +12920,53 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_timezone_names</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + + - name - text - Time zone name + + name text + + + Time zone name + + - abbrev - text - Time zone abbreviation + + abbrev text + + + Time zone abbreviation + + - utc_offset - interval - Offset from UTC (positive means east of Greenwich) + + utc_offset interval + + + Offset from UTC (positive means east of Greenwich) + + - is_dst - boolean - True if currently observing daylight savings + + is_dst bool + + + True if currently observing daylight savings + @@ -11416,74 +12991,100 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_user</structname> Columns - - + - Name - Type - Description + + Column Type + + + Description + + - usename - name - User name + + usename name + + + User name + - usesysid - oid - ID of this user + + usesysid oid + + + ID of this user + - usecreatedb - bool - User can create databases + + usecreatedb bool + + + User can create databases + - usesuper - bool - User is a superuser + + usesuper bool + + + User is a superuser + - userepl - bool - + + userepl bool + + User can initiate streaming replication and put the system in and out of backup mode. - + - usebypassrls - bool - + + usebypassrls bool + + User bypasses every row level security policy, see for more information. - + - passwd - text - Not the password (always reads as ********) + + passwd text + + + Not the password (always reads as ********) + - valuntil - timestamptz - Password expiry time (only used for password authentication) + + valuntil timestamptz + + + Password expiry time (only used for password authentication) + - useconfig - text[] - Session defaults for run-time configuration variables + + useconfig text[] + + + Session defaults for run-time configuration variables + @@ -11509,64 +13110,75 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_user_mappings</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + - umid - oid - pg_user_mapping.oid - OID of the user mapping + + umid oid + (references pg_user_mapping.oid) + + + OID of the user mapping + - srvid - oid - pg_foreign_server.oid - + + srvid oid + (references pg_foreign_server.oid) + + The OID of the foreign server that contains this mapping - + - srvname - name - pg_foreign_server.srvname - + + srvname name + (references pg_foreign_server.srvname) + + Name of the foreign server - + - umuser - oid - pg_authid.oid - OID of the local role being mapped, 0 if the user mapping is public + + umuser oid + (references pg_authid.oid) + + + OID of the local role being mapped, 0 if the user mapping is public + - usename - name - - Name of the local user to be mapped + + usename name + + + Name of the local user to be mapped + - umoptions - text[] - - + + umoptions text[] + + User mapping specific options, as keyword=value strings - + @@ -11613,40 +13225,56 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<structname>pg_views</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - schemaname - name - pg_namespace.nspname - Name of schema containing view + + schemaname name + (references pg_namespace.nspname) + + + Name of schema containing view + + - viewname - name - pg_class.relname - Name of view + + viewname name + (references pg_class.relname) + + + Name of view + + - viewowner - name - pg_authid.rolname - Name of view's owner + + viewowner name + (references pg_authid.rolname) + + + Name of view's owner + + - definition - text - - View definition (a reconstructed SELECT query) + + definition text + + + View definition (a reconstructed SELECT query) + diff --git a/doc/src/sgml/information_schema.sgml b/doc/src/sgml/information_schema.sgml index 70ad1994f74..36ec17a4c60 100644 --- a/doc/src/sgml/information_schema.sgml +++ b/doc/src/sgml/information_schema.sgml @@ -151,22 +151,27 @@
- <literal>information_schema_catalog_name</literal> Columns - - + <structname>information_schema_catalog_name</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - catalog_name - sql_identifier - Name of the database that contains this information schema + + catalog_name sql_identifier + + + Name of the database that contains this information schema + @@ -183,38 +188,47 @@
- <literal>administrable_role_authorizations</literal> Columns - - + <structname>administrable_role_authorizations</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantee - sql_identifier - + + grantee sql_identifier + + Name of the role to which this role membership was granted (can be the current user, or a different role in case of nested role memberships) - + - role_name - sql_identifier - Name of a role + + role_name sql_identifier + + + Name of a role + - is_grantable - yes_or_no - Always YES + + is_grantable yes_or_no + + + Always YES + @@ -235,41 +249,48 @@
- <literal>applicable_roles</literal> Columns - - + <structname>applicable_roles</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantee - sql_identifier - + + grantee sql_identifier + + Name of the role to which this role membership was granted (can be the current user, or a different role in case of nested role memberships) - + - role_name - sql_identifier - Name of a role + + role_name sql_identifier + + + Name of a role + - is_grantable - yes_or_no - + + is_grantable yes_or_no + + YES if the grantee has the admin option on the role, NO if not - + @@ -289,149 +310,186 @@
- <literal>attributes</literal> Columns - - + <structname>attributes</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - udt_catalog - sql_identifier - Name of the database containing the data type (always the current database) + + udt_catalog sql_identifier + + + Name of the database containing the data type (always the current database) + - udt_schema - sql_identifier - Name of the schema containing the data type + + udt_schema sql_identifier + + + Name of the schema containing the data type + - udt_name - sql_identifier - Name of the data type + + udt_name sql_identifier + + + Name of the data type + - attribute_name - sql_identifier - Name of the attribute + + attribute_name sql_identifier + + + Name of the attribute + - ordinal_position - cardinal_number - Ordinal position of the attribute within the data type (count starts at 1) + + ordinal_position cardinal_number + + + Ordinal position of the attribute within the data type (count starts at 1) + - attribute_default - character_data - Default expression of the attribute + + attribute_default character_data + + + Default expression of the attribute + - is_nullable - yes_or_no - + + is_nullable yes_or_no + + YES if the attribute is possibly nullable, NO if it is known not nullable. - + - data_type - character_data - + + data_type character_data + + Data type of the attribute, if it is a built-in type, or ARRAY if it is some array (in that case, see the view element_types), else USER-DEFINED (in that case, the type is identified in attribute_udt_name and associated columns). - + - character_maximum_length - cardinal_number - + + character_maximum_length cardinal_number + + If data_type identifies a character or bit string type, the declared maximum length; null for all other data types or if no maximum length was declared. - + - character_octet_length - cardinal_number - + + character_octet_length cardinal_number + + If data_type identifies a character type, the maximum possible length in octets (bytes) of a datum; null for all other data types. The maximum octet length depends on the declared character maximum length (see above) and the server encoding. - + - character_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_catalog - sql_identifier - + + collation_catalog sql_identifier + + Name of the database containing the collation of the attribute (always the current database), null if default or the data type of the attribute is not collatable - + - collation_schema - sql_identifier - + + collation_schema sql_identifier + + Name of the schema containing the collation of the attribute, null if default or the data type of the attribute is not collatable - + - collation_name - sql_identifier - + + collation_name sql_identifier + + Name of the collation of the attribute, null if default or the data type of the attribute is not collatable - + - numeric_precision - cardinal_number - + + numeric_precision cardinal_number + + If data_type identifies a numeric type, this column contains the (declared or implicit) precision of the type for this attribute. The precision indicates the number of @@ -439,25 +497,27 @@ or binary (base 2) terms, as specified in the column numeric_precision_radix. For all other data types, this column is null. - + - numeric_precision_radix - cardinal_number - + + numeric_precision_radix cardinal_number + + If data_type identifies a numeric type, this column indicates in which base the values in the columns numeric_precision and numeric_scale are expressed. The value is either 2 or 10. For all other data types, this column is null. - + - numeric_scale - cardinal_number - + + numeric_scale cardinal_number + + If data_type identifies an exact numeric type, this column contains the (declared or implicit) scale of the type for this attribute. The scale indicates the number of @@ -466,26 +526,28 @@ specified in the column numeric_precision_radix. For all other data types, this column is null. - + - datetime_precision - cardinal_number - + + datetime_precision cardinal_number + + If data_type identifies a date, time, timestamp, or interval type, this column contains the (declared or implicit) fractional seconds precision of the type for this attribute, that is, the number of decimal digits maintained following the decimal point in the seconds value. For all other data types, this column is null. - + - interval_type - character_data - + + interval_type character_data + + If data_type identifies an interval type, this column contains the specification which fields the intervals include for this attribute, e.g., YEAR TO @@ -493,86 +555,106 @@ field restrictions were specified (that is, the interval accepts all fields), and for all other data types, this field is null. - + - interval_precision - cardinal_number - + + interval_precision cardinal_number + + Applies to a feature not available in PostgreSQL (see datetime_precision for the fractional seconds precision of interval type attributes) - + - attribute_udt_catalog - sql_identifier - + + attribute_udt_catalog sql_identifier + + Name of the database that the attribute data type is defined in (always the current database) - + - attribute_udt_schema - sql_identifier - + + attribute_udt_schema sql_identifier + + Name of the schema that the attribute data type is defined in - + - attribute_udt_name - sql_identifier - + + attribute_udt_name sql_identifier + + Name of the attribute data type - + - scope_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_name - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - maximum_cardinality - cardinal_number - Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + + maximum_cardinality cardinal_number + + + Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + - dtd_identifier - sql_identifier - + + dtd_identifier sql_identifier + + An identifier of the data type descriptor of the column, unique among the data type descriptors pertaining to the table. This is mainly useful for joining with other instances of such identifiers. (The specific format of the identifier is not defined and not guaranteed to remain the same in future versions.) - + - is_derived_reference_attribute - yes_or_no - Applies to a feature not available in PostgreSQL + + is_derived_reference_attribute yes_or_no + + + Applies to a feature not available in PostgreSQL + @@ -647,71 +729,95 @@
- <literal>character_sets</literal> Columns - - + <structname>character_sets</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - character_set_catalog - sql_identifier - Character sets are currently not implemented as schema objects, so this column is null. + + character_set_catalog sql_identifier + + + Character sets are currently not implemented as schema objects, so this column is null. + - character_set_schema - sql_identifier - Character sets are currently not implemented as schema objects, so this column is null. + + character_set_schema sql_identifier + + + Character sets are currently not implemented as schema objects, so this column is null. + - character_set_name - sql_identifier - Name of the character set, currently implemented as showing the name of the database encoding + + character_set_name sql_identifier + + + Name of the character set, currently implemented as showing the name of the database encoding + - character_repertoire - sql_identifier - Character repertoire, showing UCS if the encoding is UTF8, else just the encoding name + + character_repertoire sql_identifier + + + Character repertoire, showing UCS if the encoding is UTF8, else just the encoding name + - form_of_use - sql_identifier - Character encoding form, same as the database encoding + + form_of_use sql_identifier + + + Character encoding form, same as the database encoding + - default_collate_catalog - sql_identifier - Name of the database containing the default collation (always the current database, if any collation is identified) + + default_collate_catalog sql_identifier + + + Name of the database containing the default collation (always the current database, if any collation is identified) + - default_collate_schema - sql_identifier - Name of the schema containing the default collation + + default_collate_schema sql_identifier + + + Name of the schema containing the default collation + - default_collate_name - sql_identifier - + + default_collate_name sql_identifier + + Name of the default collation. The default collation is identified as the collation that matches the COLLATE and CTYPE settings of the current database. If there is no such collation, then this column and the associated schema and catalog columns are null. - + @@ -729,55 +835,72 @@
- <literal>check_constraint_routine_usage</literal> Columns - - + <structname>check_constraint_routine_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - constraint_catalog - sql_identifier - Name of the database containing the constraint (always the current database) + + constraint_catalog sql_identifier + + + Name of the database containing the constraint (always the current database) + - constraint_schema - sql_identifier - Name of the schema containing the constraint + + constraint_schema sql_identifier + + + Name of the schema containing the constraint + - constraint_name - sql_identifier - Name of the constraint + + constraint_name sql_identifier + + + Name of the constraint + - specific_catalog - sql_identifier - Name of the database containing the function (always the current database) + + specific_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - specific_schema - sql_identifier - Name of the schema containing the function + + specific_schema sql_identifier + + + Name of the schema containing the function + - specific_name - sql_identifier - - The specific name of the function. See for more information. - + + specific_name sql_identifier + + + The specific name of the function. See for more information. + @@ -795,40 +918,54 @@
- <literal>check_constraints</literal> Columns - - + <structname>check_constraints</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - constraint_catalog - sql_identifier - Name of the database containing the constraint (always the current database) + + constraint_catalog sql_identifier + + + Name of the database containing the constraint (always the current database) + - constraint_schema - sql_identifier - Name of the schema containing the constraint + + constraint_schema sql_identifier + + + Name of the schema containing the constraint + - constraint_name - sql_identifier - Name of the constraint + + constraint_name sql_identifier + + + Name of the constraint + - check_clause - character_data - The check expression of the check constraint + + check_clause character_data + + + The check expression of the check constraint + @@ -844,43 +981,55 @@
- <literal>collations</literal> Columns - - + <structname>collations</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - collation_catalog - sql_identifier - Name of the database containing the collation (always the current database) + + collation_catalog sql_identifier + + + Name of the database containing the collation (always the current database) + - collation_schema - sql_identifier - Name of the schema containing the collation + + collation_schema sql_identifier + + + Name of the schema containing the collation + - collation_name - sql_identifier - Name of the default collation + + collation_name sql_identifier + + + Name of the default collation + - pad_attribute - character_data - + + pad_attribute character_data + + Always NO PAD (The alternative PAD SPACE is not supported by PostgreSQL.) - + @@ -900,52 +1049,72 @@
- <literal>collation_character_set_applicability</literal> Columns - - + <structname>collation_character_set_applicability</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - collation_catalog - sql_identifier - Name of the database containing the collation (always the current database) + + collation_catalog sql_identifier + + + Name of the database containing the collation (always the current database) + - collation_schema - sql_identifier - Name of the schema containing the collation + + collation_schema sql_identifier + + + Name of the schema containing the collation + - collation_name - sql_identifier - Name of the default collation + + collation_name sql_identifier + + + Name of the default collation + - character_set_catalog - sql_identifier - Character sets are currently not implemented as schema objects, so this column is null + + character_set_catalog sql_identifier + + + Character sets are currently not implemented as schema objects, so this column is null + - character_set_schema - sql_identifier - Character sets are currently not implemented as schema objects, so this column is null + + character_set_schema sql_identifier + + + Character sets are currently not implemented as schema objects, so this column is null + - character_set_name - sql_identifier - Name of the character set + + character_set_name sql_identifier + + + Name of the character set + @@ -962,46 +1131,63 @@
- <literal>column_column_usage</literal> Columns - - + <structname>column_column_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - table_catalog - sql_identifier - Name of the database containing the table (always the current database) + + table_catalog sql_identifier + + + Name of the database containing the table (always the current database) + - table_schema - sql_identifier - Name of the schema containing the table + + table_schema sql_identifier + + + Name of the schema containing the table + - table_name - sql_identifier - Name of the table + + table_name sql_identifier + + + Name of the table + - column_name - sql_identifier - Name of the base column that a generated column depends on + + column_name sql_identifier + + + Name of the base column that a generated column depends on + - dependent_column - sql_identifier - Name of the generated column + + dependent_column sql_identifier + + + Name of the generated column + @@ -1018,58 +1204,81 @@
- <literal>column_domain_usage</literal> Columns - - + <structname>column_domain_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - domain_catalog - sql_identifier - Name of the database containing the domain (always the current database) + + domain_catalog sql_identifier + + + Name of the database containing the domain (always the current database) + - domain_schema - sql_identifier - Name of the schema containing the domain + + domain_schema sql_identifier + + + Name of the schema containing the domain + - domain_name - sql_identifier - Name of the domain + + domain_name sql_identifier + + + Name of the domain + - table_catalog - sql_identifier - Name of the database containing the table (always the current database) + + table_catalog sql_identifier + + + Name of the database containing the table (always the current database) + - table_schema - sql_identifier - Name of the schema containing the table + + table_schema sql_identifier + + + Name of the schema containing the table + - table_name - sql_identifier - Name of the table + + table_name sql_identifier + + + Name of the table + - column_name - sql_identifier - Name of the column + + column_name sql_identifier + + + Name of the column + @@ -1087,52 +1296,72 @@
- <literal>column_options</literal> Columns - - + <structname>column_options</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - table_catalog - sql_identifier - Name of the database that contains the foreign table (always the current database) + + table_catalog sql_identifier + + + Name of the database that contains the foreign table (always the current database) + - table_schema - sql_identifier - Name of the schema that contains the foreign table + + table_schema sql_identifier + + + Name of the schema that contains the foreign table + - table_name - sql_identifier - Name of the foreign table + + table_name sql_identifier + + + Name of the foreign table + - column_name - sql_identifier - Name of the column + + column_name sql_identifier + + + Name of the column + - option_name - sql_identifier - Name of an option + + option_name sql_identifier + + + Name of an option + - option_value - character_data - Value of the option + + option_value character_data + + + Value of the option + @@ -1158,68 +1387,92 @@
- <literal>column_privileges</literal> Columns - - + <structname>column_privileges</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - Name of the role that granted the privilege + + grantor sql_identifier + + + Name of the role that granted the privilege + - grantee - sql_identifier - Name of the role that the privilege was granted to + + grantee sql_identifier + + + Name of the role that the privilege was granted to + - table_catalog - sql_identifier - Name of the database that contains the table that contains the column (always the current database) + + table_catalog sql_identifier + + + Name of the database that contains the table that contains the column (always the current database) + - table_schema - sql_identifier - Name of the schema that contains the table that contains the column + + table_schema sql_identifier + + + Name of the schema that contains the table that contains the column + - table_name - sql_identifier - Name of the table that contains the column + + table_name sql_identifier + + + Name of the table that contains the column + - column_name - sql_identifier - Name of the column + + column_name sql_identifier + + + Name of the column + - privilege_type - character_data - + + privilege_type character_data + + Type of the privilege: SELECT, INSERT, UPDATE, or REFERENCES - + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + @@ -1238,68 +1491,85 @@
- <literal>column_udt_usage</literal> Columns - - + <structname>column_udt_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - udt_catalog - sql_identifier - + + udt_catalog sql_identifier + + Name of the database that the column data type (the underlying type of the domain, if applicable) is defined in (always the current database) - + - udt_schema - sql_identifier - + + udt_schema sql_identifier + + Name of the schema that the column data type (the underlying type of the domain, if applicable) is defined in - + - udt_name - sql_identifier - + + udt_name sql_identifier + + Name of the column data type (the underlying type of the domain, if applicable) - + - table_catalog - sql_identifier - Name of the database containing the table (always the current database) + + table_catalog sql_identifier + + + Name of the database containing the table (always the current database) + - table_schema - sql_identifier - Name of the schema containing the table + + table_schema sql_identifier + + + Name of the schema containing the table + - table_name - sql_identifier - Name of the table + + table_name sql_identifier + + + Name of the table + - column_name - sql_identifier - Name of the column + + column_name sql_identifier + + + Name of the column + @@ -1318,69 +1588,91 @@
- <literal>columns</literal> Columns - - + <structname>columns</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - table_catalog - sql_identifier - Name of the database containing the table (always the current database) + + table_catalog sql_identifier + + + Name of the database containing the table (always the current database) + - table_schema - sql_identifier - Name of the schema containing the table + + table_schema sql_identifier + + + Name of the schema containing the table + - table_name - sql_identifier - Name of the table + + table_name sql_identifier + + + Name of the table + - column_name - sql_identifier - Name of the column + + column_name sql_identifier + + + Name of the column + - ordinal_position - cardinal_number - Ordinal position of the column within the table (count starts at 1) + + ordinal_position cardinal_number + + + Ordinal position of the column within the table (count starts at 1) + - column_default - character_data - Default expression of the column + + column_default character_data + + + Default expression of the column + - is_nullable - yes_or_no - + + is_nullable yes_or_no + + YES if the column is possibly nullable, NO if it is known not nullable. A not-null constraint is one way a column can be known not nullable, but there can be others. - + - data_type - character_data - + + data_type character_data + + Data type of the column, if it is a built-in type, or ARRAY if it is some array (in that case, see the view element_types), else @@ -1390,35 +1682,38 @@ refers to the type underlying the domain (and the domain is identified in domain_name and associated columns). - + - character_maximum_length - cardinal_number - + + character_maximum_length cardinal_number + + If data_type identifies a character or bit string type, the declared maximum length; null for all other data types or if no maximum length was declared. - + - character_octet_length - cardinal_number - + + character_octet_length cardinal_number + + If data_type identifies a character type, the maximum possible length in octets (bytes) of a datum; null for all other data types. The maximum octet length depends on the declared character maximum length (see above) and the server encoding. - + - numeric_precision - cardinal_number - + + numeric_precision cardinal_number + + If data_type identifies a numeric type, this column contains the (declared or implicit) precision of the type for this column. The precision indicates the number of @@ -1426,25 +1721,27 @@ or binary (base 2) terms, as specified in the column numeric_precision_radix. For all other data types, this column is null. - + - numeric_precision_radix - cardinal_number - + + numeric_precision_radix cardinal_number + + If data_type identifies a numeric type, this column indicates in which base the values in the columns numeric_precision and numeric_scale are expressed. The value is either 2 or 10. For all other data types, this column is null. - + - numeric_scale - cardinal_number - + + numeric_scale cardinal_number + + If data_type identifies an exact numeric type, this column contains the (declared or implicit) scale of the type for this column. The scale indicates the number of @@ -1453,26 +1750,28 @@ specified in the column numeric_precision_radix. For all other data types, this column is null. - + - datetime_precision - cardinal_number - + + datetime_precision cardinal_number + + If data_type identifies a date, time, timestamp, or interval type, this column contains the (declared or implicit) fractional seconds precision of the type for this column, that is, the number of decimal digits maintained following the decimal point in the seconds value. For all other data types, this column is null. - + - interval_type - character_data - + + interval_type character_data + + If data_type identifies an interval type, this column contains the specification which fields the intervals include for this column, e.g., YEAR TO @@ -1480,253 +1779,300 @@ field restrictions were specified (that is, the interval accepts all fields), and for all other data types, this field is null. - + - interval_precision - cardinal_number - + + interval_precision cardinal_number + + Applies to a feature not available in PostgreSQL (see datetime_precision for the fractional seconds precision of interval type columns) - + - character_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_catalog - sql_identifier - + + collation_catalog sql_identifier + + Name of the database containing the collation of the column (always the current database), null if default or the data type of the column is not collatable - + - collation_schema - sql_identifier - + + collation_schema sql_identifier + + Name of the schema containing the collation of the column, null if default or the data type of the column is not collatable - + - collation_name - sql_identifier - + + collation_name sql_identifier + + Name of the collation of the column, null if default or the data type of the column is not collatable - + - domain_catalog - sql_identifier - + + domain_catalog sql_identifier + + If the column has a domain type, the name of the database that the domain is defined in (always the current database), else null. - + - domain_schema - sql_identifier - + + domain_schema sql_identifier + + If the column has a domain type, the name of the schema that the domain is defined in, else null. - + - domain_name - sql_identifier - If the column has a domain type, the name of the domain, else null. + + domain_name sql_identifier + + + If the column has a domain type, the name of the domain, else null. + - udt_catalog - sql_identifier - + + udt_catalog sql_identifier + + Name of the database that the column data type (the underlying type of the domain, if applicable) is defined in (always the current database) - + - udt_schema - sql_identifier - + + udt_schema sql_identifier + + Name of the schema that the column data type (the underlying type of the domain, if applicable) is defined in - + - udt_name - sql_identifier - + + udt_name sql_identifier + + Name of the column data type (the underlying type of the domain, if applicable) - + - scope_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_name - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - maximum_cardinality - cardinal_number - Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + + maximum_cardinality cardinal_number + + + Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + - dtd_identifier - sql_identifier - + + dtd_identifier sql_identifier + + An identifier of the data type descriptor of the column, unique among the data type descriptors pertaining to the table. This is mainly useful for joining with other instances of such identifiers. (The specific format of the identifier is not defined and not guaranteed to remain the same in future versions.) - + - is_self_referencing - yes_or_no - Applies to a feature not available in PostgreSQL + + is_self_referencing yes_or_no + + + Applies to a feature not available in PostgreSQL + - is_identity - yes_or_no - + + is_identity yes_or_no + + If the column is an identity column, then YES, else NO. - + - identity_generation - character_data - + + identity_generation character_data + + If the column is an identity column, then ALWAYS or BY DEFAULT, reflecting the definition of the column. - + - identity_start - character_data - + + identity_start character_data + + If the column is an identity column, then the start value of the internal sequence, else null. - + - identity_increment - character_data - + + identity_increment character_data + + If the column is an identity column, then the increment of the internal sequence, else null. - + - identity_maximum - character_data - + + identity_maximum character_data + + If the column is an identity column, then the maximum value of the internal sequence, else null. - + - identity_minimum - character_data - + + identity_minimum character_data + + If the column is an identity column, then the minimum value of the internal sequence, else null. - + - identity_cycle - yes_or_no - + + identity_cycle yes_or_no + + If the column is an identity column, then YES if the internal sequence cycles or NO if it does not; otherwise null. - + - is_generated - character_data - + + is_generated character_data + + If the column is a generated column, then ALWAYS, else NEVER. - + - generation_expression - character_data - + + generation_expression character_data + + If the column is a generated column, then the generation expression, else null. - + - is_updatable - yes_or_no - + + is_updatable yes_or_no + + YES if the column is updatable, NO if not (Columns in base tables are always updatable, columns in views not necessarily) - + @@ -1777,70 +2123,85 @@
- <literal>constraint_column_usage</literal> Columns - - + <structname>constraint_column_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - table_catalog - sql_identifier - + + table_catalog sql_identifier + + Name of the database that contains the table that contains the column that is used by some constraint (always the current database) - + - table_schema - sql_identifier - + + table_schema sql_identifier + + Name of the schema that contains the table that contains the column that is used by some constraint - + - table_name - sql_identifier - + + table_name sql_identifier + + Name of the table that contains the column that is used by some constraint - + - column_name - sql_identifier - + + column_name sql_identifier + + Name of the column that is used by some constraint - + - constraint_catalog - sql_identifier - Name of the database that contains the constraint (always the current database) + + constraint_catalog sql_identifier + + + Name of the database that contains the constraint (always the current database) + - constraint_schema - sql_identifier - Name of the schema that contains the constraint + + constraint_schema sql_identifier + + + Name of the schema that contains the constraint + - constraint_name - sql_identifier - Name of the constraint + + constraint_name sql_identifier + + + Name of the constraint + @@ -1864,58 +2225,74 @@
- <literal>constraint_table_usage</literal> Columns - - + <structname>constraint_table_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - table_catalog - sql_identifier - + + table_catalog sql_identifier + + Name of the database that contains the table that is used by some constraint (always the current database) - + - table_schema - sql_identifier - + + table_schema sql_identifier + + Name of the schema that contains the table that is used by some constraint - + - table_name - sql_identifier - Name of the table that is used by some constraint + + table_name sql_identifier + + + Name of the table that is used by some constraint + - constraint_catalog - sql_identifier - Name of the database that contains the constraint (always the current database) + + constraint_catalog sql_identifier + + + Name of the database that contains the constraint (always the current database) + - constraint_schema - sql_identifier - Name of the schema that contains the constraint + + constraint_schema sql_identifier + + + Name of the schema that contains the constraint + - constraint_name - sql_identifier - Name of the constraint + + constraint_name sql_identifier + + + Name of the constraint + @@ -1942,56 +2319,69 @@
- <literal>data_type_privileges</literal> Columns - - + <structname>data_type_privileges</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - object_catalog - sql_identifier - Name of the database that contains the described object (always the current database) + + object_catalog sql_identifier + + + Name of the database that contains the described object (always the current database) + - object_schema - sql_identifier - Name of the schema that contains the described object + + object_schema sql_identifier + + + Name of the schema that contains the described object + - object_name - sql_identifier - Name of the described object + + object_name sql_identifier + + + Name of the described object + - object_type - character_data - + + object_type character_data + + The type of the described object: one of TABLE (the data type descriptor pertains to a column of that table), DOMAIN (the data type descriptors pertains to that domain), ROUTINE (the data type descriptor pertains to a parameter or the return data type of that function). - + - dtd_identifier - sql_identifier - + + dtd_identifier sql_identifier + + The identifier of the data type descriptor, which is unique among the data type descriptors for that same object. - + @@ -2009,64 +2399,90 @@
- <literal>domain_constraints</literal> Columns - - + <structname>domain_constraints</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - constraint_catalog - sql_identifier - Name of the database that contains the constraint (always the current database) + + constraint_catalog sql_identifier + + + Name of the database that contains the constraint (always the current database) + - constraint_schema - sql_identifier - Name of the schema that contains the constraint + + constraint_schema sql_identifier + + + Name of the schema that contains the constraint + - constraint_name - sql_identifier - Name of the constraint + + constraint_name sql_identifier + + + Name of the constraint + - domain_catalog - sql_identifier - Name of the database that contains the domain (always the current database) + + domain_catalog sql_identifier + + + Name of the database that contains the domain (always the current database) + - domain_schema - sql_identifier - Name of the schema that contains the domain + + domain_schema sql_identifier + + + Name of the schema that contains the domain + - domain_name - sql_identifier - Name of the domain + + domain_name sql_identifier + + + Name of the domain + - is_deferrable - yes_or_no - YES if the constraint is deferrable, NO if not + + is_deferrable yes_or_no + + + YES if the constraint is deferrable, NO if not + - initially_deferred - yes_or_no - YES if the constraint is deferrable and initially deferred, NO if not + + initially_deferred yes_or_no + + + YES if the constraint is deferrable and initially deferred, NO if not + @@ -2085,52 +2501,72 @@
- <literal>domain_udt_usage</literal> Columns - - + <structname>domain_udt_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - udt_catalog - sql_identifier - Name of the database that the domain data type is defined in (always the current database) + + udt_catalog sql_identifier + + + Name of the database that the domain data type is defined in (always the current database) + - udt_schema - sql_identifier - Name of the schema that the domain data type is defined in + + udt_schema sql_identifier + + + Name of the schema that the domain data type is defined in + - udt_name - sql_identifier - Name of the domain data type + + udt_name sql_identifier + + + Name of the domain data type + - domain_catalog - sql_identifier - Name of the database that contains the domain (always the current database) + + domain_catalog sql_identifier + + + Name of the database that contains the domain (always the current database) + - domain_schema - sql_identifier - Name of the schema that contains the domain + + domain_schema sql_identifier + + + Name of the schema that contains the domain + - domain_name - sql_identifier - Name of the domain + + domain_name sql_identifier + + + Name of the domain + @@ -2147,120 +2583,147 @@
- <literal>domains</literal> Columns - - + <structname>domains</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - domain_catalog - sql_identifier - Name of the database that contains the domain (always the current database) + + domain_catalog sql_identifier + + + Name of the database that contains the domain (always the current database) + - domain_schema - sql_identifier - Name of the schema that contains the domain + + domain_schema sql_identifier + + + Name of the schema that contains the domain + - domain_name - sql_identifier - Name of the domain + + domain_name sql_identifier + + + Name of the domain + - data_type - character_data - + + data_type character_data + + Data type of the domain, if it is a built-in type, or ARRAY if it is some array (in that case, see the view element_types), else USER-DEFINED (in that case, the type is identified in udt_name and associated columns). - + - character_maximum_length - cardinal_number - + + character_maximum_length cardinal_number + + If the domain has a character or bit string type, the declared maximum length; null for all other data types or if no maximum length was declared. - + - character_octet_length - cardinal_number - + + character_octet_length cardinal_number + + If the domain has a character type, the maximum possible length in octets (bytes) of a datum; null for all other data types. The maximum octet length depends on the declared character maximum length (see above) and the server encoding. - + - character_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_catalog - sql_identifier - + + collation_catalog sql_identifier + + Name of the database containing the collation of the domain (always the current database), null if default or the data type of the domain is not collatable - + - collation_schema - sql_identifier - + + collation_schema sql_identifier + + Name of the schema containing the collation of the domain, null if default or the data type of the domain is not collatable - + - collation_name - sql_identifier - + + collation_name sql_identifier + + Name of the collation of the domain, null if default or the data type of the domain is not collatable - + - numeric_precision - cardinal_number - + + numeric_precision cardinal_number + + If the domain has a numeric type, this column contains the (declared or implicit) precision of the type for this domain. The precision indicates the number of significant digits. It @@ -2268,25 +2731,27 @@ as specified in the column numeric_precision_radix. For all other data types, this column is null. - + - numeric_precision_radix - cardinal_number - + + numeric_precision_radix cardinal_number + + If the domain has a numeric type, this column indicates in which base the values in the columns numeric_precision and numeric_scale are expressed. The value is either 2 or 10. For all other data types, this column is null. - + - numeric_scale - cardinal_number - + + numeric_scale cardinal_number + + If the domain has an exact numeric type, this column contains the (declared or implicit) scale of the type for this domain. The scale indicates the number of significant digits to the @@ -2294,26 +2759,28 @@ (base 10) or binary (base 2) terms, as specified in the column numeric_precision_radix. For all other data types, this column is null. - + - datetime_precision - cardinal_number - + + datetime_precision cardinal_number + + If data_type identifies a date, time, timestamp, or interval type, this column contains the (declared or implicit) fractional seconds precision of the type for this domain, that is, the number of decimal digits maintained following the decimal point in the seconds value. For all other data types, this column is null. - + - interval_type - character_data - + + interval_type character_data + + If data_type identifies an interval type, this column contains the specification which fields the intervals include for this domain, e.g., YEAR TO @@ -2321,72 +2788,98 @@ field restrictions were specified (that is, the interval accepts all fields), and for all other data types, this field is null. - + - interval_precision - cardinal_number - + + interval_precision cardinal_number + + Applies to a feature not available in PostgreSQL (see datetime_precision for the fractional seconds precision of interval type domains) - + - domain_default - character_data - Default expression of the domain + + domain_default character_data + + + Default expression of the domain + - udt_catalog - sql_identifier - Name of the database that the domain data type is defined in (always the current database) + + udt_catalog sql_identifier + + + Name of the database that the domain data type is defined in (always the current database) + - udt_schema - sql_identifier - Name of the schema that the domain data type is defined in + + udt_schema sql_identifier + + + Name of the schema that the domain data type is defined in + - udt_name - sql_identifier - Name of the domain data type + + udt_name sql_identifier + + + Name of the domain data type + - scope_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_name - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - maximum_cardinality - cardinal_number - Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + + maximum_cardinality cardinal_number + + + Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + - dtd_identifier - sql_identifier - + + dtd_identifier sql_identifier + + An identifier of the data type descriptor of the domain, unique among the data type descriptors pertaining to the domain (which is trivial, because a domain only contains one data type @@ -2394,7 +2887,7 @@ instances of such identifiers. (The specific format of the identifier is not defined and not guaranteed to remain the same in future versions.) - + @@ -2427,48 +2920,54 @@ ORDER BY c.ordinal_position;
- <literal>element_types</literal> Columns - - + <structname>element_types</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - object_catalog - sql_identifier - + + object_catalog sql_identifier + + Name of the database that contains the object that uses the array being described (always the current database) - + - object_schema - sql_identifier - + + object_schema sql_identifier + + Name of the schema that contains the object that uses the array being described - + - object_name - sql_identifier - + + object_name sql_identifier + + Name of the object that uses the array being described - + - object_type - character_data - + + object_type character_data + + The type of the object that uses the array being described: one of TABLE (the array is used by a column of that table), USER-DEFINED TYPE (the array is @@ -2476,189 +2975,246 @@ ORDER BY c.ordinal_position; DOMAIN (the array is used by that domain), ROUTINE (the array is used by a parameter or the return data type of that function). - + - collection_type_identifier - sql_identifier - + + collection_type_identifier sql_identifier + + The identifier of the data type descriptor of the array being described. Use this to join with the dtd_identifier columns of other information schema views. - + - data_type - character_data - + + data_type character_data + + Data type of the array elements, if it is a built-in type, else USER-DEFINED (in that case, the type is identified in udt_name and associated columns). - + - character_maximum_length - cardinal_number - Always null, since this information is not applied to array element data types in PostgreSQL + + character_maximum_length cardinal_number + + + Always null, since this information is not applied to array element data types in PostgreSQL + - character_octet_length - cardinal_number - Always null, since this information is not applied to array element data types in PostgreSQL + + character_octet_length cardinal_number + + + Always null, since this information is not applied to array element data types in PostgreSQL + - character_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_catalog - sql_identifier - + + collation_catalog sql_identifier + + Name of the database containing the collation of the element type (always the current database), null if default or the data type of the element is not collatable - + - collation_schema - sql_identifier - + + collation_schema sql_identifier + + Name of the schema containing the collation of the element type, null if default or the data type of the element is not collatable - + - collation_name - sql_identifier - + + collation_name sql_identifier + + Name of the collation of the element type, null if default or the data type of the element is not collatable - + - numeric_precision - cardinal_number - Always null, since this information is not applied to array element data types in PostgreSQL + + numeric_precision cardinal_number + + + Always null, since this information is not applied to array element data types in PostgreSQL + - numeric_precision_radix - cardinal_number - Always null, since this information is not applied to array element data types in PostgreSQL + + numeric_precision_radix cardinal_number + + + Always null, since this information is not applied to array element data types in PostgreSQL + - numeric_scale - cardinal_number - Always null, since this information is not applied to array element data types in PostgreSQL + + numeric_scale cardinal_number + + + Always null, since this information is not applied to array element data types in PostgreSQL + - datetime_precision - cardinal_number - Always null, since this information is not applied to array element data types in PostgreSQL + + datetime_precision cardinal_number + + + Always null, since this information is not applied to array element data types in PostgreSQL + - interval_type - character_data - Always null, since this information is not applied to array element data types in PostgreSQL + + interval_type character_data + + + Always null, since this information is not applied to array element data types in PostgreSQL + - interval_precision - cardinal_number - Always null, since this information is not applied to array element data types in PostgreSQL + + interval_precision cardinal_number + + + Always null, since this information is not applied to array element data types in PostgreSQL + - domain_default - character_data - Not yet implemented + + domain_default character_data + + + Not yet implemented + - udt_catalog - sql_identifier - + + udt_catalog sql_identifier + + Name of the database that the data type of the elements is defined in (always the current database) - + - udt_schema - sql_identifier - + + udt_schema sql_identifier + + Name of the schema that the data type of the elements is defined in - + - udt_name - sql_identifier - + + udt_name sql_identifier + + Name of the data type of the elements - + - scope_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_name - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - maximum_cardinality - cardinal_number - Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + + maximum_cardinality cardinal_number + + + Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + - dtd_identifier - sql_identifier - + + dtd_identifier sql_identifier + + An identifier of the data type descriptor of the element. This is currently not useful. - + @@ -2689,22 +3245,27 @@ ORDER BY c.ordinal_position;
- <literal>enabled_roles</literal> Columns - - + <structname>enabled_roles</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - role_name - sql_identifier - Name of a role + + role_name sql_identifier + + + Name of a role + @@ -2723,40 +3284,54 @@ ORDER BY c.ordinal_position;
- <literal>foreign_data_wrapper_options</literal> Columns - - + <structname>foreign_data_wrapper_options</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - foreign_data_wrapper_catalog - sql_identifier - Name of the database that the foreign-data wrapper is defined in (always the current database) + + foreign_data_wrapper_catalog sql_identifier + + + Name of the database that the foreign-data wrapper is defined in (always the current database) + - foreign_data_wrapper_name - sql_identifier - Name of the foreign-data wrapper + + foreign_data_wrapper_name sql_identifier + + + Name of the foreign-data wrapper + - option_name - sql_identifier - Name of an option + + option_name sql_identifier + + + Name of an option + - option_value - character_data - Value of the option + + option_value character_data + + + Value of the option + @@ -2774,47 +3349,64 @@ ORDER BY c.ordinal_position;
- <literal>foreign_data_wrappers</literal> Columns - - + <structname>foreign_data_wrappers</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - foreign_data_wrapper_catalog - sql_identifier - Name of the database that contains the foreign-data - wrapper (always the current database) + + foreign_data_wrapper_catalog sql_identifier + + + Name of the database that contains the foreign-data + wrapper (always the current database) + - foreign_data_wrapper_name - sql_identifier - Name of the foreign-data wrapper + + foreign_data_wrapper_name sql_identifier + + + Name of the foreign-data wrapper + - authorization_identifier - sql_identifier - Name of the owner of the foreign server + + authorization_identifier sql_identifier + + + Name of the owner of the foreign server + - library_name - character_data - File name of the library that implementing this foreign-data wrapper + + library_name character_data + + + File name of the library that implementing this foreign-data wrapper + - foreign_data_wrapper_language - character_data - Language used to implement this foreign-data wrapper + + foreign_data_wrapper_language character_data + + + Language used to implement this foreign-data wrapper + @@ -2832,40 +3424,54 @@ ORDER BY c.ordinal_position;
- <literal>foreign_server_options</literal> Columns - - + <structname>foreign_server_options</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - foreign_server_catalog - sql_identifier - Name of the database that the foreign server is defined in (always the current database) + + foreign_server_catalog sql_identifier + + + Name of the database that the foreign server is defined in (always the current database) + - foreign_server_name - sql_identifier - Name of the foreign server + + foreign_server_name sql_identifier + + + Name of the foreign server + - option_name - sql_identifier - Name of an option + + option_name sql_identifier + + + Name of an option + - option_value - character_data - Value of the option + + option_value character_data + + + Value of the option + @@ -2883,59 +3489,82 @@ ORDER BY c.ordinal_position;
- <literal>foreign_servers</literal> Columns - - + <structname>foreign_servers</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - foreign_server_catalog - sql_identifier - Name of the database that the foreign server is defined in (always the current database) + + foreign_server_catalog sql_identifier + + + Name of the database that the foreign server is defined in (always the current database) + - foreign_server_name - sql_identifier - Name of the foreign server + + foreign_server_name sql_identifier + + + Name of the foreign server + - foreign_data_wrapper_catalog - sql_identifier - Name of the database that contains the foreign-data - wrapper used by the foreign server (always the current database) + + foreign_data_wrapper_catalog sql_identifier + + + Name of the database that contains the foreign-data + wrapper used by the foreign server (always the current database) + - foreign_data_wrapper_name - sql_identifier - Name of the foreign-data wrapper used by the foreign server + + foreign_data_wrapper_name sql_identifier + + + Name of the foreign-data wrapper used by the foreign server + - foreign_server_type - character_data - Foreign server type information, if specified upon creation + + foreign_server_type character_data + + + Foreign server type information, if specified upon creation + - foreign_server_version - character_data - Foreign server version information, if specified upon creation + + foreign_server_version character_data + + + Foreign server version information, if specified upon creation + - authorization_identifier - sql_identifier - Name of the owner of the foreign server + + authorization_identifier sql_identifier + + + Name of the owner of the foreign server + @@ -2953,46 +3582,63 @@ ORDER BY c.ordinal_position;
- <literal>foreign_table_options</literal> Columns - - + <structname>foreign_table_options</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - foreign_table_catalog - sql_identifier - Name of the database that contains the foreign table (always the current database) + + foreign_table_catalog sql_identifier + + + Name of the database that contains the foreign table (always the current database) + - foreign_table_schema - sql_identifier - Name of the schema that contains the foreign table + + foreign_table_schema sql_identifier + + + Name of the schema that contains the foreign table + - foreign_table_name - sql_identifier - Name of the foreign table + + foreign_table_name sql_identifier + + + Name of the foreign table + - option_name - sql_identifier - Name of an option + + option_name sql_identifier + + + Name of an option + - option_value - character_data - Value of the option + + option_value character_data + + + Value of the option + @@ -3010,46 +3656,63 @@ ORDER BY c.ordinal_position;
- <literal>foreign_tables</literal> Columns - - + <structname>foreign_tables</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - foreign_table_catalog - sql_identifier - Name of the database that the foreign table is defined in (always the current database) + + foreign_table_catalog sql_identifier + + + Name of the database that the foreign table is defined in (always the current database) + - foreign_table_schema - sql_identifier - Name of the schema that contains the foreign table + + foreign_table_schema sql_identifier + + + Name of the schema that contains the foreign table + - foreign_table_name - sql_identifier - Name of the foreign table + + foreign_table_name sql_identifier + + + Name of the foreign table + - foreign_server_catalog - sql_identifier - Name of the database that the foreign server is defined in (always the current database) + + foreign_server_catalog sql_identifier + + + Name of the database that the foreign server is defined in (always the current database) + - foreign_server_name - sql_identifier - Name of the foreign server + + foreign_server_name sql_identifier + + + Name of the foreign server + @@ -3068,89 +3731,106 @@ ORDER BY c.ordinal_position;
- <literal>key_column_usage</literal> Columns - - + <structname>key_column_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - constraint_catalog - sql_identifier - Name of the database that contains the constraint (always the current database) + + constraint_catalog sql_identifier + + + Name of the database that contains the constraint (always the current database) + - constraint_schema - sql_identifier - Name of the schema that contains the constraint + + constraint_schema sql_identifier + + + Name of the schema that contains the constraint + - constraint_name - sql_identifier - Name of the constraint + + constraint_name sql_identifier + + + Name of the constraint + - table_catalog - sql_identifier - + + table_catalog sql_identifier + + Name of the database that contains the table that contains the column that is restricted by this constraint (always the current database) - + - table_schema - sql_identifier - + + table_schema sql_identifier + + Name of the schema that contains the table that contains the column that is restricted by this constraint - + - table_name - sql_identifier - + + table_name sql_identifier + + Name of the table that contains the column that is restricted by this constraint - + - column_name - sql_identifier - + + column_name sql_identifier + + Name of the column that is restricted by this constraint - + - ordinal_position - cardinal_number - + + ordinal_position cardinal_number + + Ordinal position of the column within the constraint key (count starts at 1) - + - position_in_unique_constraint - cardinal_number - + + position_in_unique_constraint cardinal_number + + For a foreign-key constraint, ordinal position of the referenced column within its unique constraint (count starts at 1); otherwise null - + @@ -3168,243 +3848,322 @@ ORDER BY c.ordinal_position;
- <literal>parameters</literal> Columns - - + <structname>parameters</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - specific_catalog - sql_identifier - Name of the database containing the function (always the current database) + + specific_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - specific_schema - sql_identifier - Name of the schema containing the function + + specific_schema sql_identifier + + + Name of the schema containing the function + - specific_name - sql_identifier - - The specific name of the function. See for more information. - + + specific_name sql_identifier + + + The specific name of the function. See for more information. + - ordinal_position - cardinal_number - + + ordinal_position cardinal_number + + Ordinal position of the parameter in the argument list of the function (count starts at 1) - + - parameter_mode - character_data - + + parameter_mode character_data + + IN for input parameter, OUT for output parameter, and INOUT for input/output parameter. - + - is_result - yes_or_no - Applies to a feature not available in PostgreSQL + + is_result yes_or_no + + + Applies to a feature not available in PostgreSQL + - as_locator - yes_or_no - Applies to a feature not available in PostgreSQL + + as_locator yes_or_no + + + Applies to a feature not available in PostgreSQL + - parameter_name - sql_identifier - Name of the parameter, or null if the parameter has no name + + parameter_name sql_identifier + + + Name of the parameter, or null if the parameter has no name + - data_type - character_data - + + data_type character_data + + Data type of the parameter, if it is a built-in type, or ARRAY if it is some array (in that case, see the view element_types), else USER-DEFINED (in that case, the type is identified in udt_name and associated columns). - + - character_maximum_length - cardinal_number - Always null, since this information is not applied to parameter data types in PostgreSQL + + character_maximum_length cardinal_number + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - character_octet_length - cardinal_number - Always null, since this information is not applied to parameter data types in PostgreSQL + + character_octet_length cardinal_number + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - character_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_catalog - sql_identifier - Always null, since this information is not applied to parameter data types in PostgreSQL + + collation_catalog sql_identifier + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - collation_schema - sql_identifier - Always null, since this information is not applied to parameter data types in PostgreSQL + + collation_schema sql_identifier + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - collation_name - sql_identifier - Always null, since this information is not applied to parameter data types in PostgreSQL + + collation_name sql_identifier + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - numeric_precision - cardinal_number - Always null, since this information is not applied to parameter data types in PostgreSQL + + numeric_precision cardinal_number + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - numeric_precision_radix - cardinal_number - Always null, since this information is not applied to parameter data types in PostgreSQL + + numeric_precision_radix cardinal_number + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - numeric_scale - cardinal_number - Always null, since this information is not applied to parameter data types in PostgreSQL + + numeric_scale cardinal_number + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - datetime_precision - cardinal_number - Always null, since this information is not applied to parameter data types in PostgreSQL + + datetime_precision cardinal_number + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - interval_type - character_data - Always null, since this information is not applied to parameter data types in PostgreSQL + + interval_type character_data + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - interval_precision - cardinal_number - Always null, since this information is not applied to parameter data types in PostgreSQL + + interval_precision cardinal_number + + + Always null, since this information is not applied to parameter data types in PostgreSQL + - udt_catalog - sql_identifier - + + udt_catalog sql_identifier + + Name of the database that the data type of the parameter is defined in (always the current database) - + - udt_schema - sql_identifier - + + udt_schema sql_identifier + + Name of the schema that the data type of the parameter is defined in - + - udt_name - sql_identifier - + + udt_name sql_identifier + + Name of the data type of the parameter - + - scope_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_name - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - maximum_cardinality - cardinal_number - Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + + maximum_cardinality cardinal_number + + + Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + - dtd_identifier - sql_identifier - + + dtd_identifier sql_identifier + + An identifier of the data type descriptor of the parameter, unique among the data type descriptors pertaining to the function. This is mainly useful for joining with other instances of such identifiers. (The specific format of the identifier is not defined and not guaranteed to remain the same in future versions.) - + - parameter_default - character_data - + + parameter_default character_data + + The default expression of the parameter, or null if none or if the function is not owned by a currently enabled role. - + @@ -3423,94 +4182,111 @@ ORDER BY c.ordinal_position;
- <literal>referential_constraints</literal> Columns - - + <structname>referential_constraints</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - constraint_catalog - sql_identifier - Name of the database containing the constraint (always the current database) + + constraint_catalog sql_identifier + + + Name of the database containing the constraint (always the current database) + - constraint_schema - sql_identifier - Name of the schema containing the constraint + + constraint_schema sql_identifier + + + Name of the schema containing the constraint + - constraint_name - sql_identifier - Name of the constraint + + constraint_name sql_identifier + + + Name of the constraint + - unique_constraint_catalog - sql_identifier - + + unique_constraint_catalog sql_identifier + + Name of the database that contains the unique or primary key constraint that the foreign key constraint references (always the current database) - + - unique_constraint_schema - sql_identifier - + + unique_constraint_schema sql_identifier + + Name of the schema that contains the unique or primary key constraint that the foreign key constraint references - + - unique_constraint_name - sql_identifier - + + unique_constraint_name sql_identifier + + Name of the unique or primary key constraint that the foreign key constraint references - + - match_option - character_data - + + match_option character_data + + Match option of the foreign key constraint: FULL, PARTIAL, or NONE. - + - update_rule - character_data - + + update_rule character_data + + Update rule of the foreign key constraint: CASCADE, SET NULL, SET DEFAULT, RESTRICT, or NO ACTION. - + - delete_rule - character_data - + + delete_rule character_data + + Delete rule of the foreign key constraint: CASCADE, SET NULL, SET DEFAULT, RESTRICT, or NO ACTION. - + @@ -3533,68 +4309,92 @@ ORDER BY c.ordinal_position;
- <literal>role_column_grants</literal> Columns - - + <structname>role_column_grants</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - Name of the role that granted the privilege + + grantor sql_identifier + + + Name of the role that granted the privilege + - grantee - sql_identifier - Name of the role that the privilege was granted to + + grantee sql_identifier + + + Name of the role that the privilege was granted to + - table_catalog - sql_identifier - Name of the database that contains the table that contains the column (always the current database) + + table_catalog sql_identifier + + + Name of the database that contains the table that contains the column (always the current database) + - table_schema - sql_identifier - Name of the schema that contains the table that contains the column + + table_schema sql_identifier + + + Name of the schema that contains the table that contains the column + - table_name - sql_identifier - Name of the table that contains the column + + table_name sql_identifier + + + Name of the table that contains the column + - column_name - sql_identifier - Name of the column + + column_name sql_identifier + + + Name of the column + - privilege_type - character_data - + + privilege_type character_data + + Type of the privilege: SELECT, INSERT, UPDATE, or REFERENCES - + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + @@ -3616,79 +4416,108 @@ ORDER BY c.ordinal_position;
- <literal>role_routine_grants</literal> Columns - - + <structname>role_routine_grants</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - Name of the role that granted the privilege + + grantor sql_identifier + + + Name of the role that granted the privilege + - grantee - sql_identifier - Name of the role that the privilege was granted to + + grantee sql_identifier + + + Name of the role that the privilege was granted to + - specific_catalog - sql_identifier - Name of the database containing the function (always the current database) + + specific_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - specific_schema - sql_identifier - Name of the schema containing the function + + specific_schema sql_identifier + + + Name of the schema containing the function + - specific_name - sql_identifier - - The specific name of the function. See for more information. - + + specific_name sql_identifier + + + The specific name of the function. See for more information. + - routine_catalog - sql_identifier - Name of the database containing the function (always the current database) + + routine_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - routine_schema - sql_identifier - Name of the schema containing the function + + routine_schema sql_identifier + + + Name of the schema containing the function + - routine_name - sql_identifier - Name of the function (might be duplicated in case of overloading) + + routine_name sql_identifier + + + Name of the function (might be duplicated in case of overloading) + - privilege_type - character_data - Always EXECUTE (the only privilege type for functions) + + privilege_type character_data + + + Always EXECUTE (the only privilege type for functions) + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + @@ -3710,76 +4539,98 @@ ORDER BY c.ordinal_position;
- <literal>role_table_grants</literal> Columns - - + <structname>role_table_grants</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - Name of the role that granted the privilege + + grantor sql_identifier + + + Name of the role that granted the privilege + - grantee - sql_identifier - Name of the role that the privilege was granted to + + grantee sql_identifier + + + Name of the role that the privilege was granted to + - table_catalog - sql_identifier - Name of the database that contains the table (always the current database) + + table_catalog sql_identifier + + + Name of the database that contains the table (always the current database) + - table_schema - sql_identifier - Name of the schema that contains the table + + table_schema sql_identifier + + + Name of the schema that contains the table + - table_name - sql_identifier - Name of the table + + table_name sql_identifier + + + Name of the table + - privilege_type - character_data - + + privilege_type character_data + + Type of the privilege: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, or TRIGGER - + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + - with_hierarchy - yes_or_no - + + with_hierarchy yes_or_no + + In the SQL standard, WITH HIERARCHY OPTION is a separate (sub-)privilege allowing certain operations on table inheritance hierarchies. In PostgreSQL, this is included in the SELECT privilege, so this column shows YES if the privilege is SELECT, else NO. - + @@ -3803,58 +4654,81 @@ ORDER BY c.ordinal_position;
- <literal>role_udt_grants</literal> Columns - - + <structname>role_udt_grants</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - The name of the role that granted the privilege + + grantor sql_identifier + + + The name of the role that granted the privilege + - grantee - sql_identifier - The name of the role that the privilege was granted to + + grantee sql_identifier + + + The name of the role that the privilege was granted to + - udt_catalog - sql_identifier - Name of the database containing the type (always the current database) + + udt_catalog sql_identifier + + + Name of the database containing the type (always the current database) + - udt_schema - sql_identifier - Name of the schema containing the type + + udt_schema sql_identifier + + + Name of the schema containing the type + - udt_name - sql_identifier - Name of the type + + udt_name sql_identifier + + + Name of the type + - privilege_type - character_data - Always TYPE USAGE + + privilege_type character_data + + + Always TYPE USAGE + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + @@ -3876,65 +4750,91 @@ ORDER BY c.ordinal_position;
- <literal>role_usage_grants</literal> Columns - - + <structname>role_usage_grants</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - The name of the role that granted the privilege + + grantor sql_identifier + + + The name of the role that granted the privilege + - grantee - sql_identifier - The name of the role that the privilege was granted to + + grantee sql_identifier + + + The name of the role that the privilege was granted to + - object_catalog - sql_identifier - Name of the database containing the object (always the current database) + + object_catalog sql_identifier + + + Name of the database containing the object (always the current database) + - object_schema - sql_identifier - Name of the schema containing the object, if applicable, - else an empty string + + object_schema sql_identifier + + + Name of the schema containing the object, if applicable, + else an empty string + - object_name - sql_identifier - Name of the object + + object_name sql_identifier + + + Name of the object + - object_type - character_data - COLLATION or DOMAIN or FOREIGN DATA WRAPPER or FOREIGN SERVER or SEQUENCE + + object_type character_data + + + COLLATION or DOMAIN or FOREIGN DATA WRAPPER or FOREIGN SERVER or SEQUENCE + - privilege_type - character_data - Always USAGE + + privilege_type character_data + + + Always USAGE + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + @@ -3952,79 +4852,108 @@ ORDER BY c.ordinal_position;
- <literal>routine_privileges</literal> Columns - - + <structname>routine_privileges</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - Name of the role that granted the privilege + + grantor sql_identifier + + + Name of the role that granted the privilege + - grantee - sql_identifier - Name of the role that the privilege was granted to + + grantee sql_identifier + + + Name of the role that the privilege was granted to + - specific_catalog - sql_identifier - Name of the database containing the function (always the current database) + + specific_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - specific_schema - sql_identifier - Name of the schema containing the function + + specific_schema sql_identifier + + + Name of the schema containing the function + - specific_name - sql_identifier - - The specific name of the function. See for more information. - + + specific_name sql_identifier + + + The specific name of the function. See for more information. + - routine_catalog - sql_identifier - Name of the database containing the function (always the current database) + + routine_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - routine_schema - sql_identifier - Name of the schema containing the function + + routine_schema sql_identifier + + + Name of the schema containing the function + - routine_name - sql_identifier - Name of the function (might be duplicated in case of overloading) + + routine_name sql_identifier + + + Name of the function (might be duplicated in case of overloading) + - privilege_type - character_data - Always EXECUTE (the only privilege type for functions) + + privilege_type character_data + + + Always EXECUTE (the only privilege type for functions) + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + @@ -4042,278 +4971,376 @@ ORDER BY c.ordinal_position;
- <literal>routines</literal> Columns - - + <structname>routines</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - specific_catalog - sql_identifier - Name of the database containing the function (always the current database) + + specific_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - specific_schema - sql_identifier - Name of the schema containing the function + + specific_schema sql_identifier + + + Name of the schema containing the function + - specific_name - sql_identifier - + + specific_name sql_identifier + + The specific name of the function. This is a name that uniquely identifies the function in the schema, even if the real name of the function is overloaded. The format of the specific name is not defined, it should only be used to compare it to other instances of specific routine names. - + - routine_catalog - sql_identifier - Name of the database containing the function (always the current database) + + routine_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - routine_schema - sql_identifier - Name of the schema containing the function + + routine_schema sql_identifier + + + Name of the schema containing the function + - routine_name - sql_identifier - Name of the function (might be duplicated in case of overloading) + + routine_name sql_identifier + + + Name of the function (might be duplicated in case of overloading) + - routine_type - character_data - + + routine_type character_data + + FUNCTION for a function, PROCEDURE for a procedure - + - module_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + module_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - module_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + module_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - module_name - sql_identifier - Applies to a feature not available in PostgreSQL + + module_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - udt_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + udt_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - udt_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + udt_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - udt_name - sql_identifier - Applies to a feature not available in PostgreSQL + + udt_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - data_type - character_data - + + data_type character_data + + Return data type of the function, if it is a built-in type, or ARRAY if it is some array (in that case, see the view element_types), else USER-DEFINED (in that case, the type is identified in type_udt_name and associated columns). Null for a procedure. - + - character_maximum_length - cardinal_number - Always null, since this information is not applied to return data types in PostgreSQL + + character_maximum_length cardinal_number + + + Always null, since this information is not applied to return data types in PostgreSQL + - character_octet_length - cardinal_number - Always null, since this information is not applied to return data types in PostgreSQL + + character_octet_length cardinal_number + + + Always null, since this information is not applied to return data types in PostgreSQL + - character_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_catalog - sql_identifier - Always null, since this information is not applied to return data types in PostgreSQL + + collation_catalog sql_identifier + + + Always null, since this information is not applied to return data types in PostgreSQL + - collation_schema - sql_identifier - Always null, since this information is not applied to return data types in PostgreSQL + + collation_schema sql_identifier + + + Always null, since this information is not applied to return data types in PostgreSQL + - collation_name - sql_identifier - Always null, since this information is not applied to return data types in PostgreSQL + + collation_name sql_identifier + + + Always null, since this information is not applied to return data types in PostgreSQL + - numeric_precision - cardinal_number - Always null, since this information is not applied to return data types in PostgreSQL + + numeric_precision cardinal_number + + + Always null, since this information is not applied to return data types in PostgreSQL + - numeric_precision_radix - cardinal_number - Always null, since this information is not applied to return data types in PostgreSQL + + numeric_precision_radix cardinal_number + + + Always null, since this information is not applied to return data types in PostgreSQL + - numeric_scale - cardinal_number - Always null, since this information is not applied to return data types in PostgreSQL + + numeric_scale cardinal_number + + + Always null, since this information is not applied to return data types in PostgreSQL + - datetime_precision - cardinal_number - Always null, since this information is not applied to return data types in PostgreSQL + + datetime_precision cardinal_number + + + Always null, since this information is not applied to return data types in PostgreSQL + - interval_type - character_data - Always null, since this information is not applied to return data types in PostgreSQL + + interval_type character_data + + + Always null, since this information is not applied to return data types in PostgreSQL + - interval_precision - cardinal_number - Always null, since this information is not applied to return data types in PostgreSQL + + interval_precision cardinal_number + + + Always null, since this information is not applied to return data types in PostgreSQL + - type_udt_catalog - sql_identifier - + + type_udt_catalog sql_identifier + + Name of the database that the return data type of the function is defined in (always the current database). Null for a procedure. - + - type_udt_schema - sql_identifier - + + type_udt_schema sql_identifier + + Name of the schema that the return data type of the function is defined in. Null for a procedure. - + - type_udt_name - sql_identifier - + + type_udt_name sql_identifier + + Name of the return data type of the function. Null for a procedure. - + - scope_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - scope_name - sql_identifier - Applies to a feature not available in PostgreSQL + + scope_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - maximum_cardinality - cardinal_number - Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + + maximum_cardinality cardinal_number + + + Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + - dtd_identifier - sql_identifier - + + dtd_identifier sql_identifier + + An identifier of the data type descriptor of the return data type of this function, unique among the data type descriptors pertaining to the function. This is mainly useful for joining with other instances of such identifiers. (The specific format of the identifier is not defined and not guaranteed to remain the same in future versions.) - + - routine_body - character_data - + + routine_body character_data + + If the function is an SQL function, then SQL, else EXTERNAL. - + - routine_definition - character_data - + + routine_definition character_data + + The source text of the function (null if the function is not owned by a currently enabled role). (According to the SQL standard, this column is only applicable if @@ -4321,305 +5348,421 @@ ORDER BY c.ordinal_position; in PostgreSQL it will contain whatever source text was specified when the function was created.) - + - external_name - character_data - + + external_name character_data + + If this function is a C function, then the external name (link symbol) of the function; else null. (This works out to be the same value that is shown in routine_definition.) - + - external_language - character_data - The language the function is written in + + external_language character_data + + + The language the function is written in + - parameter_style - character_data - + + parameter_style character_data + + Always GENERAL (The SQL standard defines other parameter styles, which are not available in PostgreSQL.) - + - is_deterministic - yes_or_no - + + is_deterministic yes_or_no + + If the function is declared immutable (called deterministic in the SQL standard), then YES, else NO. (You cannot query the other volatility levels available in PostgreSQL through the information schema.) - + - sql_data_access - character_data - + + sql_data_access character_data + + Always MODIFIES, meaning that the function possibly modifies SQL data. This information is not useful for PostgreSQL. - + - is_null_call - yes_or_no - + + is_null_call yes_or_no + + If the function automatically returns null if any of its arguments are null, then YES, else NO. Null for a procedure. - + - sql_path - character_data - Applies to a feature not available in PostgreSQL + + sql_path character_data + + + Applies to a feature not available in PostgreSQL + - schema_level_routine - yes_or_no - + + schema_level_routine yes_or_no + + Always YES (The opposite would be a method of a user-defined type, which is a feature not available in PostgreSQL.) - + - max_dynamic_result_sets - cardinal_number - Applies to a feature not available in PostgreSQL + + max_dynamic_result_sets cardinal_number + + + Applies to a feature not available in PostgreSQL + - is_user_defined_cast - yes_or_no - Applies to a feature not available in PostgreSQL + + is_user_defined_cast yes_or_no + + + Applies to a feature not available in PostgreSQL + - is_implicitly_invocable - yes_or_no - Applies to a feature not available in PostgreSQL + + is_implicitly_invocable yes_or_no + + + Applies to a feature not available in PostgreSQL + - security_type - character_data - + + security_type character_data + + If the function runs with the privileges of the current user, then INVOKER, if the function runs with the privileges of the user who defined it, then DEFINER. - + - to_sql_specific_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + to_sql_specific_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - to_sql_specific_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + to_sql_specific_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - to_sql_specific_name - sql_identifier - Applies to a feature not available in PostgreSQL + + to_sql_specific_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - as_locator - yes_or_no - Applies to a feature not available in PostgreSQL + + as_locator yes_or_no + + + Applies to a feature not available in PostgreSQL + - created - time_stamp - Applies to a feature not available in PostgreSQL + + created time_stamp + + + Applies to a feature not available in PostgreSQL + - last_altered - time_stamp - Applies to a feature not available in PostgreSQL + + last_altered time_stamp + + + Applies to a feature not available in PostgreSQL + - new_savepoint_level - yes_or_no - Applies to a feature not available in PostgreSQL + + new_savepoint_level yes_or_no + + + Applies to a feature not available in PostgreSQL + - is_udt_dependent - yes_or_no - + + is_udt_dependent yes_or_no + + Currently always NO. The alternative YES applies to a feature not available in PostgreSQL. - + - result_cast_from_data_type - character_data - Applies to a feature not available in PostgreSQL + + result_cast_from_data_type character_data + + + Applies to a feature not available in PostgreSQL + - result_cast_as_locator - yes_or_no - Applies to a feature not available in PostgreSQL + + result_cast_as_locator yes_or_no + + + Applies to a feature not available in PostgreSQL + - result_cast_char_max_length - cardinal_number - Applies to a feature not available in PostgreSQL + + result_cast_char_max_length cardinal_number + + + Applies to a feature not available in PostgreSQL + - result_cast_char_octet_length - cardinal_number - Applies to a feature not available in PostgreSQL + + result_cast_char_octet_length cardinal_number + + + Applies to a feature not available in PostgreSQL + - result_cast_char_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_char_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_char_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_char_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_char_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_char_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_collation_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_collation_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_collation_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_collation_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_collation_name - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_collation_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_numeric_precision - cardinal_number - Applies to a feature not available in PostgreSQL + + result_cast_numeric_precision cardinal_number + + + Applies to a feature not available in PostgreSQL + - result_cast_numeric_precision_radix - cardinal_number - Applies to a feature not available in PostgreSQL + + result_cast_numeric_precision_radix cardinal_number + + + Applies to a feature not available in PostgreSQL + - result_cast_numeric_scale - cardinal_number - Applies to a feature not available in PostgreSQL + + result_cast_numeric_scale cardinal_number + + + Applies to a feature not available in PostgreSQL + - result_cast_datetime_precision - cardinal_number - Applies to a feature not available in PostgreSQL + + result_cast_datetime_precision cardinal_number + + + Applies to a feature not available in PostgreSQL + - result_cast_interval_type - character_data - Applies to a feature not available in PostgreSQL + + result_cast_interval_type character_data + + + Applies to a feature not available in PostgreSQL + - result_cast_interval_precision - cardinal_number - Applies to a feature not available in PostgreSQL + + result_cast_interval_precision cardinal_number + + + Applies to a feature not available in PostgreSQL + - result_cast_type_udt_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_type_udt_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_type_udt_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_type_udt_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_type_udt_name - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_type_udt_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_scope_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_scope_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_scope_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_scope_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_scope_name - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_scope_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - result_cast_maximum_cardinality - cardinal_number - Applies to a feature not available in PostgreSQL + + result_cast_maximum_cardinality cardinal_number + + + Applies to a feature not available in PostgreSQL + - result_cast_dtd_identifier - sql_identifier - Applies to a feature not available in PostgreSQL + + result_cast_dtd_identifier sql_identifier + + + Applies to a feature not available in PostgreSQL + @@ -4636,58 +5779,81 @@ ORDER BY c.ordinal_position;
- <literal>schemata</literal> Columns - - + <structname>schemata</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - catalog_name - sql_identifier - Name of the database that the schema is contained in (always the current database) + + catalog_name sql_identifier + + + Name of the database that the schema is contained in (always the current database) + - schema_name - sql_identifier - Name of the schema + + schema_name sql_identifier + + + Name of the schema + - schema_owner - sql_identifier - Name of the owner of the schema + + schema_owner sql_identifier + + + Name of the owner of the schema + - default_character_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + default_character_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - default_character_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + default_character_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - default_character_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + default_character_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - sql_path - character_data - Applies to a feature not available in PostgreSQL + + sql_path character_data + + + Applies to a feature not available in PostgreSQL + @@ -4705,108 +5871,138 @@ ORDER BY c.ordinal_position;
- <literal>sequences</literal> Columns - - + <structname>sequences</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - sequence_catalog - sql_identifier - Name of the database that contains the sequence (always the current database) + + sequence_catalog sql_identifier + + + Name of the database that contains the sequence (always the current database) + - sequence_schema - sql_identifier - Name of the schema that contains the sequence + + sequence_schema sql_identifier + + + Name of the schema that contains the sequence + - sequence_name - sql_identifier - Name of the sequence + + sequence_name sql_identifier + + + Name of the sequence + - data_type - character_data - + + data_type character_data + + The data type of the sequence. - + - numeric_precision - cardinal_number - + + numeric_precision cardinal_number + + This column contains the (declared or implicit) precision of the sequence data type (see above). The precision indicates the number of significant digits. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column numeric_precision_radix. - + - numeric_precision_radix - cardinal_number - + + numeric_precision_radix cardinal_number + + This column indicates in which base the values in the columns numeric_precision and numeric_scale are expressed. The value is either 2 or 10. - + - numeric_scale - cardinal_number - + + numeric_scale cardinal_number + + This column contains the (declared or implicit) scale of the sequence data type (see above). The scale indicates the number of significant digits to the right of the decimal point. It can be expressed in decimal (base 10) or binary (base 2) terms, as specified in the column numeric_precision_radix. - + - start_value - character_data - The start value of the sequence + + start_value character_data + + + The start value of the sequence + - minimum_value - character_data - The minimum value of the sequence + + minimum_value character_data + + + The minimum value of the sequence + - maximum_value - character_data - The maximum value of the sequence + + maximum_value character_data + + + The maximum value of the sequence + - increment - character_data - The increment of the sequence + + increment character_data + + + The increment of the sequence + - cycle_option - yes_or_no - YES if the sequence cycles, else NO + + cycle_option yes_or_no + + + YES if the sequence cycles, else NO + @@ -4830,64 +6026,83 @@ ORDER BY c.ordinal_position;
- <literal>sql_features</literal> Columns - - + <structname>sql_features</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - feature_id - character_data - Identifier string of the feature + + feature_id character_data + + + Identifier string of the feature + - feature_name - character_data - Descriptive name of the feature + + feature_name character_data + + + Descriptive name of the feature + - sub_feature_id - character_data - Identifier string of the subfeature, or a zero-length string if not a subfeature + + sub_feature_id character_data + + + Identifier string of the subfeature, or a zero-length string if not a subfeature + - sub_feature_name - character_data - Descriptive name of the subfeature, or a zero-length string if not a subfeature + + sub_feature_name character_data + + + Descriptive name of the subfeature, or a zero-length string if not a subfeature + - is_supported - yes_or_no - + + is_supported yes_or_no + + YES if the feature is fully supported by the current version of PostgreSQL, NO if not - + - is_verified_by - character_data - + + is_verified_by character_data + + Always null, since the PostgreSQL development group does not perform formal testing of feature conformance - + - comments - character_data - Possibly a comment about the supported status of the feature + + comments character_data + + + Possibly a comment about the supported status of the feature + @@ -4909,54 +6124,67 @@ ORDER BY c.ordinal_position;
- <literal>sql_implementation_info</literal> Columns - - + <structname>sql_implementation_info</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - implementation_info_id - character_data - Identifier string of the implementation information item + + implementation_info_id character_data + + + Identifier string of the implementation information item + - implementation_info_name - character_data - Descriptive name of the implementation information item + + implementation_info_name character_data + + + Descriptive name of the implementation information item + - integer_value - cardinal_number - + + integer_value cardinal_number + + Value of the implementation information item, or null if the value is contained in the column character_value - + - character_value - character_data - + + character_value character_data + + Value of the implementation information item, or null if the value is contained in the column integer_value - + - comments - character_data - Possibly a comment pertaining to the implementation information item + + comments character_data + + + Possibly a comment pertaining to the implementation information item + @@ -4973,53 +6201,66 @@ ORDER BY c.ordinal_position;
- <literal>sql_parts</literal> Columns - - + <structname>sql_parts</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - feature_id - character_data - An identifier string containing the number of the part + + feature_id character_data + + + An identifier string containing the number of the part + - feature_name - character_data - Descriptive name of the part + + feature_name character_data + + + Descriptive name of the part + - is_supported - yes_or_no - + + is_supported yes_or_no + + YES if the part is fully supported by the current version of PostgreSQL, NO if not - + - is_verified_by - character_data - + + is_verified_by character_data + + Always null, since the PostgreSQL development group does not perform formal testing of feature conformance - + - comments - character_data - Possibly a comment about the supported status of the part + + comments character_data + + + Possibly a comment about the supported status of the part + @@ -5041,44 +6282,56 @@ ORDER BY c.ordinal_position;
- <literal>sql_sizing</literal> Columns - - + <structname>sql_sizing</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - sizing_id - cardinal_number - Identifier of the sizing item + + sizing_id cardinal_number + + + Identifier of the sizing item + - sizing_name - character_data - Descriptive name of the sizing item + + sizing_name character_data + + + Descriptive name of the sizing item + - supported_value - cardinal_number - + + supported_value cardinal_number + + Value of the sizing item, or 0 if the size is unlimited or cannot be determined, or null if the features for which the sizing item is applicable are not supported - + - comments - character_data - Possibly a comment pertaining to the sizing item + + comments character_data + + + Possibly a comment pertaining to the sizing item + @@ -5095,81 +6348,112 @@ ORDER BY c.ordinal_position;
- <literal>table_constraints</literal> Columns - - + <structname>table_constraints</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - constraint_catalog - sql_identifier - Name of the database that contains the constraint (always the current database) + + constraint_catalog sql_identifier + + + Name of the database that contains the constraint (always the current database) + - constraint_schema - sql_identifier - Name of the schema that contains the constraint + + constraint_schema sql_identifier + + + Name of the schema that contains the constraint + - constraint_name - sql_identifier - Name of the constraint + + constraint_name sql_identifier + + + Name of the constraint + - table_catalog - sql_identifier - Name of the database that contains the table (always the current database) + + table_catalog sql_identifier + + + Name of the database that contains the table (always the current database) + - table_schema - sql_identifier - Name of the schema that contains the table + + table_schema sql_identifier + + + Name of the schema that contains the table + - table_name - sql_identifier - Name of the table + + table_name sql_identifier + + + Name of the table + - constraint_type - character_data - + + constraint_type character_data + + Type of the constraint: CHECK, FOREIGN KEY, PRIMARY KEY, or UNIQUE - + - is_deferrable - yes_or_no - YES if the constraint is deferrable, NO if not + + is_deferrable yes_or_no + + + YES if the constraint is deferrable, NO if not + - initially_deferred - yes_or_no - YES if the constraint is deferrable and initially deferred, NO if not + + initially_deferred yes_or_no + + + YES if the constraint is deferrable and initially deferred, NO if not + + - enforced - yes_or_no - Applies to a feature not available in - PostgreSQL (currently always - YES) + + enforced yes_or_no + + + Applies to a feature not available in + PostgreSQL (currently always + YES) + @@ -5187,76 +6471,98 @@ ORDER BY c.ordinal_position;
- <literal>table_privileges</literal> Columns - - + <structname>table_privileges</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - Name of the role that granted the privilege + + grantor sql_identifier + + + Name of the role that granted the privilege + - grantee - sql_identifier - Name of the role that the privilege was granted to + + grantee sql_identifier + + + Name of the role that the privilege was granted to + - table_catalog - sql_identifier - Name of the database that contains the table (always the current database) + + table_catalog sql_identifier + + + Name of the database that contains the table (always the current database) + - table_schema - sql_identifier - Name of the schema that contains the table + + table_schema sql_identifier + + + Name of the schema that contains the table + - table_name - sql_identifier - Name of the table + + table_name sql_identifier + + + Name of the table + - privilege_type - character_data - + + privilege_type character_data + + Type of the privilege: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, or TRIGGER - + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + - with_hierarchy - yes_or_no - + + with_hierarchy yes_or_no + + In the SQL standard, WITH HIERARCHY OPTION is a separate (sub-)privilege allowing certain operations on table inheritance hierarchies. In PostgreSQL, this is included in the SELECT privilege, so this column shows YES if the privilege is SELECT, else NO. - + @@ -5274,108 +6580,136 @@ ORDER BY c.ordinal_position;
- <literal>tables</literal> Columns - - + <structname>tables</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - table_catalog - sql_identifier - Name of the database that contains the table (always the current database) + + table_catalog sql_identifier + + + Name of the database that contains the table (always the current database) + - table_schema - sql_identifier - Name of the schema that contains the table + + table_schema sql_identifier + + + Name of the schema that contains the table + - table_name - sql_identifier - Name of the table + + table_name sql_identifier + + + Name of the table + - table_type - character_data - + + table_type character_data + + Type of the table: BASE TABLE for a persistent base table (the normal table type), VIEW for a view, FOREIGN for a foreign table, or LOCAL TEMPORARY for a temporary table - + - self_referencing_column_name - sql_identifier - Applies to a feature not available in PostgreSQL + + self_referencing_column_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - reference_generation - character_data - Applies to a feature not available in PostgreSQL + + reference_generation character_data + + + Applies to a feature not available in PostgreSQL + - user_defined_type_catalog - sql_identifier - + + user_defined_type_catalog sql_identifier + + If the table is a typed table, the name of the database that contains the underlying data type (always the current database), else null. - + - user_defined_type_schema - sql_identifier - + + user_defined_type_schema sql_identifier + + If the table is a typed table, the name of the schema that contains the underlying data type, else null. - + - user_defined_type_name - sql_identifier - + + user_defined_type_name sql_identifier + + If the table is a typed table, the name of the underlying data type, else null. - + - is_insertable_into - yes_or_no - + + is_insertable_into yes_or_no + + YES if the table is insertable into, NO if not (Base tables are always insertable into, views not necessarily.) - + - is_typed - yes_or_no - YES if the table is a typed table, NO if not + + is_typed yes_or_no + + + YES if the table is a typed table, NO if not + - commit_action - character_data - Not yet implemented + + commit_action character_data + + + Not yet implemented + @@ -5393,74 +6727,93 @@ ORDER BY c.ordinal_position;
- <literal>transforms</literal> Columns - - + <structname>transforms</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - udt_catalog - sql_identifier - Name of the database that contains the type the transform is for (always the current database) + + udt_catalog sql_identifier + + + Name of the database that contains the type the transform is for (always the current database) + - udt_schema - sql_identifier - Name of the schema that contains the type the transform is for + + udt_schema sql_identifier + + + Name of the schema that contains the type the transform is for + - udt_name - sql_identifier - Name of the type the transform is for + + udt_name sql_identifier + + + Name of the type the transform is for + - specific_catalog - sql_identifier - Name of the database containing the function (always the current database) + + specific_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - specific_schema - sql_identifier - Name of the schema containing the function + + specific_schema sql_identifier + + + Name of the schema containing the function + - specific_name - sql_identifier - - The specific name of the function. See for more information. - + + specific_name sql_identifier + + + The specific name of the function. See for more information. + - group_name - sql_identifier - + + group_name sql_identifier + + The SQL standard allows defining transforms in groups, and selecting a group at run time. PostgreSQL does not support this. Instead, transforms are specific to a language. As a compromise, this field contains the language the transform is for. - + - transform_type - character_data - + + transform_type character_data + + FROM SQL or TO SQL - + @@ -5481,61 +6834,82 @@ ORDER BY c.ordinal_position;
- <literal>triggered_update_columns</literal> Columns - - + <structname>triggered_update_columns</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - trigger_catalog - sql_identifier - Name of the database that contains the trigger (always the current database) + + trigger_catalog sql_identifier + + + Name of the database that contains the trigger (always the current database) + - trigger_schema - sql_identifier - Name of the schema that contains the trigger + + trigger_schema sql_identifier + + + Name of the schema that contains the trigger + - trigger_name - sql_identifier - Name of the trigger + + trigger_name sql_identifier + + + Name of the trigger + - event_object_catalog - sql_identifier - + + event_object_catalog sql_identifier + + Name of the database that contains the table that the trigger is defined on (always the current database) - + - event_object_schema - sql_identifier - Name of the schema that contains the table that the trigger is defined on + + event_object_schema sql_identifier + + + Name of the schema that contains the table that the trigger is defined on + - event_object_table - sql_identifier - Name of the table that the trigger is defined on + + event_object_table sql_identifier + + + Name of the table that the trigger is defined on + - event_object_column - sql_identifier - Name of the column that the trigger is defined on + + event_object_column sql_identifier + + + Name of the column that the trigger is defined on + @@ -5552,146 +6926,185 @@ ORDER BY c.ordinal_position;
- <literal>triggers</literal> Columns - - + <structname>triggers</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - trigger_catalog - sql_identifier - Name of the database that contains the trigger (always the current database) + + trigger_catalog sql_identifier + + + Name of the database that contains the trigger (always the current database) + - trigger_schema - sql_identifier - Name of the schema that contains the trigger + + trigger_schema sql_identifier + + + Name of the schema that contains the trigger + - trigger_name - sql_identifier - Name of the trigger + + trigger_name sql_identifier + + + Name of the trigger + - event_manipulation - character_data - + + event_manipulation character_data + + Event that fires the trigger (INSERT, UPDATE, or DELETE) - + - event_object_catalog - sql_identifier - + + event_object_catalog sql_identifier + + Name of the database that contains the table that the trigger is defined on (always the current database) - + - event_object_schema - sql_identifier - Name of the schema that contains the table that the trigger is defined on + + event_object_schema sql_identifier + + + Name of the schema that contains the table that the trigger is defined on + - event_object_table - sql_identifier - Name of the table that the trigger is defined on + + event_object_table sql_identifier + + + Name of the table that the trigger is defined on + - action_order - cardinal_number - + + action_order cardinal_number + + Firing order among triggers on the same table having the same event_manipulation, action_timing, and action_orientation. In PostgreSQL, triggers are fired in name order, so this column reflects that. - + - action_condition - character_data - + + action_condition character_data + + WHEN condition of the trigger, null if none (also null if the table is not owned by a currently enabled role) - + - action_statement - character_data - + + action_statement character_data + + Statement that is executed by the trigger (currently always EXECUTE FUNCTION function(...)) - + - action_orientation - character_data - + + action_orientation character_data + + Identifies whether the trigger fires once for each processed row or once for each statement (ROW or STATEMENT) - + - action_timing - character_data - + + action_timing character_data + + Time at which the trigger fires (BEFORE, AFTER, or INSTEAD OF) - + - action_reference_old_table - sql_identifier - Name of the old transition table, or null if none + + action_reference_old_table sql_identifier + + + Name of the old transition table, or null if none + - action_reference_new_table - sql_identifier - Name of the new transition table, or null if none + + action_reference_new_table sql_identifier + + + Name of the new transition table, or null if none + - action_reference_old_row - sql_identifier - Applies to a feature not available in PostgreSQL + + action_reference_old_row sql_identifier + + + Applies to a feature not available in PostgreSQL + - action_reference_new_row - sql_identifier - Applies to a feature not available in PostgreSQL + + action_reference_new_row sql_identifier + + + Applies to a feature not available in PostgreSQL + - created - time_stamp - Applies to a feature not available in PostgreSQL + + created time_stamp + + + Applies to a feature not available in PostgreSQL + @@ -5758,58 +7171,81 @@ ORDER BY c.ordinal_position;
- <literal>udt_privileges</literal> Columns - - + <structname>udt_privileges</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - Name of the role that granted the privilege + + grantor sql_identifier + + + Name of the role that granted the privilege + - grantee - sql_identifier - Name of the role that the privilege was granted to + + grantee sql_identifier + + + Name of the role that the privilege was granted to + - udt_catalog - sql_identifier - Name of the database containing the type (always the current database) + + udt_catalog sql_identifier + + + Name of the database containing the type (always the current database) + - udt_schema - sql_identifier - Name of the schema containing the type + + udt_schema sql_identifier + + + Name of the schema containing the type + - udt_name - sql_identifier - Name of the type + + udt_name sql_identifier + + + Name of the type + - privilege_type - character_data - Always TYPE USAGE + + privilege_type character_data + + + Always TYPE USAGE + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + @@ -5844,65 +7280,91 @@ ORDER BY c.ordinal_position;
- <literal>usage_privileges</literal> Columns - - + <structname>usage_privileges</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - grantor - sql_identifier - Name of the role that granted the privilege + + grantor sql_identifier + + + Name of the role that granted the privilege + - grantee - sql_identifier - Name of the role that the privilege was granted to + + grantee sql_identifier + + + Name of the role that the privilege was granted to + - object_catalog - sql_identifier - Name of the database containing the object (always the current database) + + object_catalog sql_identifier + + + Name of the database containing the object (always the current database) + - object_schema - sql_identifier - Name of the schema containing the object, if applicable, - else an empty string + + object_schema sql_identifier + + + Name of the schema containing the object, if applicable, + else an empty string + - object_name - sql_identifier - Name of the object + + object_name sql_identifier + + + Name of the object + - object_type - character_data - COLLATION or DOMAIN or FOREIGN DATA WRAPPER or FOREIGN SERVER or SEQUENCE + + object_type character_data + + + COLLATION or DOMAIN or FOREIGN DATA WRAPPER or FOREIGN SERVER or SEQUENCE + - privilege_type - character_data - Always USAGE + + privilege_type character_data + + + Always USAGE + - is_grantable - yes_or_no - YES if the privilege is grantable, NO if not + + is_grantable yes_or_no + + + YES if the privilege is grantable, NO if not + @@ -5933,192 +7395,279 @@ ORDER BY c.ordinal_position;
- <literal>user_defined_types</literal> Columns - - + <structname>user_defined_types</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - user_defined_type_catalog - sql_identifier - Name of the database that contains the type (always the current database) + + user_defined_type_catalog sql_identifier + + + Name of the database that contains the type (always the current database) + - user_defined_type_schema - sql_identifier - Name of the schema that contains the type + + user_defined_type_schema sql_identifier + + + Name of the schema that contains the type + - user_defined_type_name - sql_identifier - Name of the type + + user_defined_type_name sql_identifier + + + Name of the type + - user_defined_type_category - character_data - + + user_defined_type_category character_data + + Currently always STRUCTURED - + - is_instantiable - yes_or_no - Applies to a feature not available in PostgreSQL + + is_instantiable yes_or_no + + + Applies to a feature not available in PostgreSQL + - is_final - yes_or_no - Applies to a feature not available in PostgreSQL + + is_final yes_or_no + + + Applies to a feature not available in PostgreSQL + - ordering_form - character_data - Applies to a feature not available in PostgreSQL + + ordering_form character_data + + + Applies to a feature not available in PostgreSQL + - ordering_category - character_data - Applies to a feature not available in PostgreSQL + + ordering_category character_data + + + Applies to a feature not available in PostgreSQL + - ordering_routine_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + ordering_routine_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - ordering_routine_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + ordering_routine_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - ordering_routine_name - sql_identifier - Applies to a feature not available in PostgreSQL + + ordering_routine_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - reference_type - character_data - Applies to a feature not available in PostgreSQL + + reference_type character_data + + + Applies to a feature not available in PostgreSQL + - data_type - character_data - Applies to a feature not available in PostgreSQL + + data_type character_data + + + Applies to a feature not available in PostgreSQL + - character_maximum_length - cardinal_number - Applies to a feature not available in PostgreSQL + + character_maximum_length cardinal_number + + + Applies to a feature not available in PostgreSQL + - character_octet_length - cardinal_number - Applies to a feature not available in PostgreSQL + + character_octet_length cardinal_number + + + Applies to a feature not available in PostgreSQL + - character_set_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - character_set_name - sql_identifier - Applies to a feature not available in PostgreSQL + + character_set_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_catalog - sql_identifier - Applies to a feature not available in PostgreSQL + + collation_catalog sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_schema - sql_identifier - Applies to a feature not available in PostgreSQL + + collation_schema sql_identifier + + + Applies to a feature not available in PostgreSQL + - collation_name - sql_identifier - Applies to a feature not available in PostgreSQL + + collation_name sql_identifier + + + Applies to a feature not available in PostgreSQL + - numeric_precision - cardinal_number - Applies to a feature not available in PostgreSQL + + numeric_precision cardinal_number + + + Applies to a feature not available in PostgreSQL + - numeric_precision_radix - cardinal_number - Applies to a feature not available in PostgreSQL + + numeric_precision_radix cardinal_number + + + Applies to a feature not available in PostgreSQL + - numeric_scale - cardinal_number - Applies to a feature not available in PostgreSQL + + numeric_scale cardinal_number + + + Applies to a feature not available in PostgreSQL + - datetime_precision - cardinal_number - Applies to a feature not available in PostgreSQL + + datetime_precision cardinal_number + + + Applies to a feature not available in PostgreSQL + - interval_type - character_data - Applies to a feature not available in PostgreSQL + + interval_type character_data + + + Applies to a feature not available in PostgreSQL + - interval_precision - cardinal_number - Applies to a feature not available in PostgreSQL + + interval_precision cardinal_number + + + Applies to a feature not available in PostgreSQL + - source_dtd_identifier - sql_identifier - Applies to a feature not available in PostgreSQL + + source_dtd_identifier sql_identifier + + + Applies to a feature not available in PostgreSQL + - ref_dtd_identifier - sql_identifier - Applies to a feature not available in PostgreSQL + + ref_dtd_identifier sql_identifier + + + Applies to a feature not available in PostgreSQL + @@ -6137,53 +7686,70 @@ ORDER BY c.ordinal_position;
- <literal>user_mapping_options</literal> Columns - - + <structname>user_mapping_options</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - authorization_identifier - sql_identifier - Name of the user being mapped, - or PUBLIC if the mapping is public + + authorization_identifier sql_identifier + + + Name of the user being mapped, + or PUBLIC if the mapping is public + - foreign_server_catalog - sql_identifier - Name of the database that the foreign server used by this - mapping is defined in (always the current database) + + foreign_server_catalog sql_identifier + + + Name of the database that the foreign server used by this + mapping is defined in (always the current database) + - foreign_server_name - sql_identifier - Name of the foreign server used by this mapping + + foreign_server_name sql_identifier + + + Name of the foreign server used by this mapping + - option_name - sql_identifier - Name of an option + + option_name sql_identifier + + + Name of an option + - option_value - character_data - Value of the option. This column will show as null - unless the current user is the user being mapped, or the mapping - is for PUBLIC and the current user is the - server owner, or the current user is a superuser. The intent is - to protect password information stored as user mapping - option. + + option_value character_data + + + Value of the option. This column will show as null + unless the current user is the user being mapped, or the mapping + is for PUBLIC and the current user is the + server owner, or the current user is a superuser. The intent is + to protect password information stored as user mapping + option. + @@ -6202,36 +7768,47 @@ ORDER BY c.ordinal_position;
- <literal>user_mappings</literal> Columns - - + <structname>user_mappings</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - authorization_identifier - sql_identifier - Name of the user being mapped, - or PUBLIC if the mapping is public + + authorization_identifier sql_identifier + + + Name of the user being mapped, + or PUBLIC if the mapping is public + - foreign_server_catalog - sql_identifier - Name of the database that the foreign server used by this - mapping is defined in (always the current database) + + foreign_server_catalog sql_identifier + + + Name of the database that the foreign server used by this + mapping is defined in (always the current database) + - foreign_server_name - sql_identifier - Name of the foreign server used by this mapping + + foreign_server_name sql_identifier + + + Name of the foreign server used by this mapping + @@ -6257,67 +7834,84 @@ ORDER BY c.ordinal_position;
- <literal>view_column_usage</literal> Columns - - + <structname>view_column_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - view_catalog - sql_identifier - Name of the database that contains the view (always the current database) + + view_catalog sql_identifier + + + Name of the database that contains the view (always the current database) + - view_schema - sql_identifier - Name of the schema that contains the view + + view_schema sql_identifier + + + Name of the schema that contains the view + - view_name - sql_identifier - Name of the view + + view_name sql_identifier + + + Name of the view + - table_catalog - sql_identifier - + + table_catalog sql_identifier + + Name of the database that contains the table that contains the column that is used by the view (always the current database) - + - table_schema - sql_identifier - + + table_schema sql_identifier + + Name of the schema that contains the table that contains the column that is used by the view - + - table_name - sql_identifier - + + table_name sql_identifier + + Name of the table that contains the column that is used by the view - + - column_name - sql_identifier - Name of the column that is used by the view + + column_name sql_identifier + + + Name of the column that is used by the view + @@ -6336,55 +7930,72 @@ ORDER BY c.ordinal_position;
- <literal>view_routine_usage</literal> Columns - - + <structname>view_routine_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - table_catalog - sql_identifier - Name of the database containing the view (always the current database) + + table_catalog sql_identifier + + + Name of the database containing the view (always the current database) + - table_schema - sql_identifier - Name of the schema containing the view + + table_schema sql_identifier + + + Name of the schema containing the view + - table_name - sql_identifier - Name of the view + + table_name sql_identifier + + + Name of the view + - specific_catalog - sql_identifier - Name of the database containing the function (always the current database) + + specific_catalog sql_identifier + + + Name of the database containing the function (always the current database) + - specific_schema - sql_identifier - Name of the schema containing the function + + specific_schema sql_identifier + + + Name of the schema containing the function + - specific_name - sql_identifier - - The specific name of the function. See for more information. - + + specific_name sql_identifier + + + The specific name of the function. See for more information. + @@ -6409,60 +8020,74 @@ ORDER BY c.ordinal_position;
- <literal>view_table_usage</literal> Columns - - + <structname>view_table_usage</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - view_catalog - sql_identifier - Name of the database that contains the view (always the current database) + + view_catalog sql_identifier + + + Name of the database that contains the view (always the current database) + - view_schema - sql_identifier - Name of the schema that contains the view + + view_schema sql_identifier + + + Name of the schema that contains the view + - view_name - sql_identifier - Name of the view + + view_name sql_identifier + + + Name of the view + - table_catalog - sql_identifier - + + table_catalog sql_identifier + + Name of the database that contains the table that is used by the view (always the current database) - + - table_schema - sql_identifier - + + table_schema sql_identifier + + Name of the schema that contains the table that is used by the view - + - table_name - sql_identifier - + + table_name sql_identifier + + Name of the table that is used by the view - + @@ -6479,99 +8104,117 @@ ORDER BY c.ordinal_position;
- <literal>views</literal> Columns - - + <structname>views</structname> Columns + - Name - Data Type - Description + + Column Type + + + Description + - table_catalog - sql_identifier - Name of the database that contains the view (always the current database) + + table_catalog sql_identifier + + + Name of the database that contains the view (always the current database) + - table_schema - sql_identifier - Name of the schema that contains the view + + table_schema sql_identifier + + + Name of the schema that contains the view + - table_name - sql_identifier - Name of the view + + table_name sql_identifier + + + Name of the view + - view_definition - character_data - + + view_definition character_data + + Query expression defining the view (null if the view is not owned by a currently enabled role) - + - check_option - character_data - + + check_option character_data + + CASCADED or LOCAL if the view has a CHECK OPTION defined on it, NONE if not - + - is_updatable - yes_or_no - + + is_updatable yes_or_no + + YES if the view is updatable (allows UPDATE and DELETE), NO if not - + - is_insertable_into - yes_or_no - + + is_insertable_into yes_or_no + + YES if the view is insertable into (allows INSERT), NO if not - + - is_trigger_updatable - yes_or_no - + + is_trigger_updatable yes_or_no + + YES if the view has an INSTEAD OF UPDATE trigger defined on it, NO if not - + - is_trigger_deletable - yes_or_no - + + is_trigger_deletable yes_or_no + + YES if the view has an INSTEAD OF DELETE trigger defined on it, NO if not - + - is_trigger_insertable_into - yes_or_no - + + is_trigger_insertable_into yes_or_no + + YES if the view has an INSTEAD OF INSERT trigger defined on it, NO if not - + diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 579ccd34d4f..4c6b40778bb 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -611,119 +611,170 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
<structname>pg_stat_activity</structname> View - - + - - Column - Type - Description + + + Column Type + + + Description + - - - datid - oid - OID of the database this backend is connected to - - - datname - name - Name of the database this backend is connected to - - - pid - integer - Process ID of this backend - - - leader_pid - integer - - Process ID of the parallel group leader if this process is or - has been involved in parallel query, or null. This field is set - when a process wants to cooperate with parallel workers, and - remains set as long as the process exists. For a parallel group leader, - this field is set to its own process ID. For a parallel worker, - this field is set to the process ID of the parallel group leader. - - - - usesysid - oid - OID of the user logged into this backend - - - usename - name - Name of the user logged into this backend - - - application_name - text - Name of the application that is connected - to this backend - - - client_addr - inet - IP address of the client connected to this backend. - If this field is null, it indicates either that the client is - connected via a Unix socket on the server machine or that this is an - internal process such as autovacuum. - - - - client_hostname - text - Host name of the connected client, as reported by a - reverse DNS lookup of client_addr. This field will - only be non-null for IP connections, and only when is enabled. - - - - client_port - integer - TCP port number that the client is using for communication - with this backend, or -1 if a Unix socket is used. - If this field is null, it indicates that this is an internal server process. - - - - backend_start - timestamp with time zone - Time when this process was started. For client backends, - this is the time the client connected to the server. - - - - xact_start - timestamp with time zone - Time when this process' current transaction was started, or null - if no transaction is active. If the current - query is the first of its transaction, this column is equal to the - query_start column. - - - - query_start - timestamp with time zone - Time when the currently active query was started, or if - state is not active, when the last query - was started - - - - state_change - timestamp with time zone - Time when the state was last changed - + - wait_event_type - text - The type of event for which the backend is waiting, if any; + + datid oid + + + OID of the database this backend is connected to + + + + + + datname name + + + Name of the database this backend is connected to + + + + + + pid integer + + + Process ID of this backend + + + + + + leader_pid integer + + + Process ID of the parallel group leader if this process is or + has been involved in parallel query, or null. This field is set + when a process wants to cooperate with parallel workers, and + remains set as long as the process exists. For a parallel group leader, + this field is set to its own process ID. For a parallel worker, + this field is set to the process ID of the parallel group leader. + + + + + + usesysid oid + + + OID of the user logged into this backend + + + + + + usename name + + + Name of the user logged into this backend + + + + + + application_name text + + + Name of the application that is connected + to this backend + + + + + + client_addr inet + + + IP address of the client connected to this backend. + If this field is null, it indicates either that the client is + connected via a Unix socket on the server machine or that this is an + internal process such as autovacuum. + + + + + + client_hostname text + + + Host name of the connected client, as reported by a + reverse DNS lookup of client_addr. This field will + only be non-null for IP connections, and only when is enabled. + + + + + + client_port integer + + + TCP port number that the client is using for communication + with this backend, or -1 if a Unix socket is used. + If this field is null, it indicates that this is an internal server process. + + + + + + backend_start timestamp with time zone + + + Time when this process was started. For client backends, + this is the time the client connected to the server. + + + + + + xact_start timestamp with time zone + + + Time when this process' current transaction was started, or null + if no transaction is active. If the current + query is the first of its transaction, this column is equal to the + query_start column. + + + + + + query_start timestamp with time zone + + + Time when the currently active query was started, or if + state is not active, when the last query + was started + + + + + + state_change timestamp with time zone + + + Time when the state was last changed + + + + + + wait_event_type text + + + The type of event for which the backend is waiting, if any; otherwise NULL. Possible values are: @@ -797,96 +848,115 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser - + - - wait_event - text - Wait event name if backend is currently waiting, otherwise NULL. - See for details. - - - - state - text - Current overall state of this backend. + + + + wait_event text + + + Wait event name if backend is currently waiting, otherwise NULL. + See for details. + + + + + + state text + + + Current overall state of this backend. Possible values are: - - - active: The backend is executing a query. - - - - - idle: The backend is waiting for a new client command. - - - - - idle in transaction: The backend is in a transaction, - but is not currently executing a query. - - - - - idle in transaction (aborted): This state is similar to - idle in transaction, except one of the statements in - the transaction caused an error. - - - - - fastpath function call: The backend is executing a - fast-path function. - - - - - disabled: This state is reported if is disabled in this backend. - - + + + active: The backend is executing a query. + + + + + idle: The backend is waiting for a new client command. + + + + + idle in transaction: The backend is in a transaction, + but is not currently executing a query. + + + + + idle in transaction (aborted): This state is similar to + idle in transaction, except one of the statements in + the transaction caused an error. + + + + + fastpath function call: The backend is executing a + fast-path function. + + + + + disabled: This state is reported if is disabled in this backend. + + - - - - backend_xid - xid - Top-level transaction identifier of this backend, if any. - - - backend_xmin - xid - The current backend's xmin horizon. - - - query - text - Text of this backend's most recent query. If - state is active this field shows the - currently executing query. In all other states, it shows the last query - that was executed. By default the query text is truncated at 1024 - characters; this value can be changed via the parameter - . - - - - backend_type - text - Type of current backend. Possible types are - autovacuum launcher, autovacuum worker, - logical replication launcher, - logical replication worker, - parallel worker, background writer, - client backend, checkpointer, - startup, walreceiver, - walsender and walwriter. - In addition, background workers registered by extensions may have - additional types. - - - + + + + + + backend_xid xid + + + Top-level transaction identifier of this backend, if any. + + + + + + backend_xmin xid + + + The current backend's xmin horizon. + + + + + + query text + + + Text of this backend's most recent query. If + state is active this field shows the + currently executing query. In all other states, it shows the last query + that was executed. By default the query text is truncated at 1024 + characters; this value can be changed via the parameter + . + + + + + + backend_type text + + + Type of current backend. Possible types are + autovacuum launcher, autovacuum worker, + logical replication launcher, + logical replication worker, + parallel worker, background writer, + client backend, checkpointer, + startup, walreceiver, + walsender and walwriter. + In addition, background workers registered by extensions may have + additional types. + + +
@@ -1842,228 +1912,315 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_replication</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - pid - integer - Process ID of a WAL sender process - - - usesysid - oid - OID of the user logged into this WAL sender process - - - usename - name - Name of the user logged into this WAL sender process - - - application_name - text - Name of the application that is connected - to this WAL sender - - - client_addr - inet - IP address of the client connected to this WAL sender. - If this field is null, it indicates that the client is - connected via a Unix socket on the server machine. - - - - client_hostname - text - Host name of the connected client, as reported by a - reverse DNS lookup of client_addr. This field will - only be non-null for IP connections, and only when is enabled. - - - - client_port - integer - TCP port number that the client is using for communication - with this WAL sender, or -1 if a Unix socket is used - - - - backend_start - timestamp with time zone - Time when this process was started, i.e., when the - client connected to this WAL sender - - - - backend_xmin - xid - This standby's xmin horizon reported - by . - - - state - text - Current WAL sender state. + + + + pid integer + + + Process ID of a WAL sender process + + + + + + usesysid oid + + + OID of the user logged into this WAL sender process + + + + + + usename name + + + Name of the user logged into this WAL sender process + + + + + + application_name text + + + Name of the application that is connected + to this WAL sender + + + + + + client_addr inet + + + IP address of the client connected to this WAL sender. + If this field is null, it indicates that the client is + connected via a Unix socket on the server machine. + + + + + + client_hostname text + + + Host name of the connected client, as reported by a + reverse DNS lookup of client_addr. This field will + only be non-null for IP connections, and only when is enabled. + + + + + + client_port integer + + + TCP port number that the client is using for communication + with this WAL sender, or -1 if a Unix socket is used + + + + + + backend_start timestamp with time zone + + + Time when this process was started, i.e., when the + client connected to this WAL sender + + + + + + backend_xmin xid + + + This standby's xmin horizon reported + by . + + + + + + state text + + + Current WAL sender state. Possible values are: - - - startup: This WAL sender is starting up. - - - - - catchup: This WAL sender's connected standby is - catching up with the primary. - - - - - streaming: This WAL sender is streaming changes - after its connected standby server has caught up with the primary. - - - - - backup: This WAL sender is sending a backup. - - - - - stopping: This WAL sender is stopping. - - + + + startup: This WAL sender is starting up. + + + + + catchup: This WAL sender's connected standby is + catching up with the primary. + + + + + streaming: This WAL sender is streaming changes + after its connected standby server has caught up with the primary. + + + + + backup: This WAL sender is sending a backup. + + + + + stopping: This WAL sender is stopping. + + - - - - sent_lsn - pg_lsn - Last write-ahead log location sent on this connection - - - write_lsn - pg_lsn - Last write-ahead log location written to disk by this standby - server - - - flush_lsn - pg_lsn - Last write-ahead log location flushed to disk by this standby - server - - - replay_lsn - pg_lsn - Last write-ahead log location replayed into the database on this - standby server - - - write_lag - interval - Time elapsed between flushing recent WAL locally and receiving - notification that this standby server has written it (but not yet - flushed it or applied it). This can be used to gauge the delay that - synchronous_commit level - remote_write incurred while committing if this - server was configured as a synchronous standby. - - - flush_lag - interval - Time elapsed between flushing recent WAL locally and receiving - notification that this standby server has written and flushed it - (but not yet applied it). This can be used to gauge the delay that - synchronous_commit level - on incurred while committing if this - server was configured as a synchronous standby. - - - replay_lag - interval - Time elapsed between flushing recent WAL locally and receiving - notification that this standby server has written, flushed and - applied it. This can be used to gauge the delay that - synchronous_commit level - remote_apply incurred while committing if this - server was configured as a synchronous standby. - - - sync_priority - integer - Priority of this standby server for being chosen as the - synchronous standby in a priority-based synchronous replication. - This has no effect in a quorum-based synchronous replication. - - - sync_state - text - Synchronous state of this standby server. + + + + + + sent_lsn pg_lsn + + + Last write-ahead log location sent on this connection + + + + + + write_lsn pg_lsn + + + Last write-ahead log location written to disk by this standby + server + + + + + + flush_lsn pg_lsn + + + Last write-ahead log location flushed to disk by this standby + server + + + + + + replay_lsn pg_lsn + + + Last write-ahead log location replayed into the database on this + standby server + + + + + + write_lag interval + + + Time elapsed between flushing recent WAL locally and receiving + notification that this standby server has written it (but not yet + flushed it or applied it). This can be used to gauge the delay that + synchronous_commit level + remote_write incurred while committing if this + server was configured as a synchronous standby. + + + + + + flush_lag interval + + + Time elapsed between flushing recent WAL locally and receiving + notification that this standby server has written and flushed it + (but not yet applied it). This can be used to gauge the delay that + synchronous_commit level + on incurred while committing if this + server was configured as a synchronous standby. + + + + + + replay_lag interval + + + Time elapsed between flushing recent WAL locally and receiving + notification that this standby server has written, flushed and + applied it. This can be used to gauge the delay that + synchronous_commit level + remote_apply incurred while committing if this + server was configured as a synchronous standby. + + + + + + sync_priority integer + + + Priority of this standby server for being chosen as the + synchronous standby in a priority-based synchronous replication. + This has no effect in a quorum-based synchronous replication. + + + + + + sync_state text + + + Synchronous state of this standby server. Possible values are: - - - async: This standby server is asynchronous. - - - - - potential: This standby server is now asynchronous, - but can potentially become synchronous if one of current - synchronous ones fails. - - - - - sync: This standby server is synchronous. - - - - - quorum: This standby server is considered as a candidate - for quorum standbys. - - + + + async: This standby server is asynchronous. + + + + + potential: This standby server is now asynchronous, + but can potentially become synchronous if one of current + synchronous ones fails. + + + + + sync: This standby server is synchronous. + + + + + quorum: This standby server is considered as a candidate + for quorum standbys. + + - - - - reply_time - timestamp with time zone - Send time of last reply message received from standby server - - - spill_txns - bigint - Number of transactions spilled to disk after the memory used by - logical decoding exceeds logical_decoding_work_mem. The - counter gets incremented both for toplevel transactions and - subtransactions. - - - spill_count - bigint - Number of times transactions were spilled to disk. Transactions - may get spilled repeatedly, and this counter gets incremented on every - such invocation. - - - spill_bytes - bigint - Amount of decoded transaction data spilled to disk. - - + + + + + + reply_time timestamp with time zone + + + Send time of last reply message received from standby server + + + + + + spill_txns bigint + + + Number of transactions spilled to disk after the memory used by + logical decoding exceeds logical_decoding_work_mem. The + counter gets incremented both for toplevel transactions and + subtransactions. + + + + + + spill_count bigint + + + Number of times transactions were spilled to disk. Transactions + may get spilled repeatedly, and this counter gets incremented on every + such invocation. + + + + + + spill_bytes bigint + + + Amount of decoded transaction data spilled to disk. + + +
@@ -2115,105 +2272,156 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_wal_receiver</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - pid - integer - Process ID of the WAL receiver process - - - status - text - Activity status of the WAL receiver process - - - receive_start_lsn - pg_lsn - First write-ahead log location used when WAL receiver is - started - - - receive_start_tli - integer - First timeline number used when WAL receiver is started - - - received_lsn - pg_lsn - Last write-ahead log location already received and flushed to - disk, the initial value of this field being the first log location used - when WAL receiver is started - - - received_tli - integer - Timeline number of last write-ahead log location received and - flushed to disk, the initial value of this field being the timeline - number of the first log location used when WAL receiver is started - - - - last_msg_send_time - timestamp with time zone - Send time of last message received from origin WAL sender - - - last_msg_receipt_time - timestamp with time zone - Receipt time of last message received from origin WAL sender - - - latest_end_lsn - pg_lsn - Last write-ahead log location reported to origin WAL sender - - - latest_end_time - timestamp with time zone - Time of last write-ahead log location reported to origin WAL sender - - - slot_name - text - Replication slot name used by this WAL receiver - - - sender_host - text - - Host of the PostgreSQL instance - this WAL receiver is connected to. This can be a host name, - an IP address, or a directory path if the connection is via - Unix socket. (The path case can be distinguished because it - will always be an absolute path, beginning with /.) - - - - sender_port - integer - - Port number of the PostgreSQL instance - this WAL receiver is connected to. - - - - conninfo - text - - Connection string used by this WAL receiver, - with security-sensitive fields obfuscated. - - - + + + + pid integer + + + Process ID of the WAL receiver process + + + + + + status text + + + Activity status of the WAL receiver process + + + + + + receive_start_lsn pg_lsn + + + First write-ahead log location used when WAL receiver is + started + + + + + + receive_start_tli integer + + + First timeline number used when WAL receiver is started + + + + + + received_lsn pg_lsn + + + Last write-ahead log location already received and flushed to + disk, the initial value of this field being the first log location used + when WAL receiver is started + + + + + + received_tli integer + + + Timeline number of last write-ahead log location received and + flushed to disk, the initial value of this field being the timeline + number of the first log location used when WAL receiver is started + + + + + + last_msg_send_time timestamp with time zone + + + Send time of last message received from origin WAL sender + + + + + + last_msg_receipt_time timestamp with time zone + + + Receipt time of last message received from origin WAL sender + + + + + + latest_end_lsn pg_lsn + + + Last write-ahead log location reported to origin WAL sender + + + + + + latest_end_time timestamp with time zone + + + Time of last write-ahead log location reported to origin WAL sender + + + + + + slot_name text + + + Replication slot name used by this WAL receiver + + + + + + sender_host text + + + Host of the PostgreSQL instance + this WAL receiver is connected to. This can be a host name, + an IP address, or a directory path if the connection is via + Unix socket. (The path case can be distinguished because it + will always be an absolute path, beginning with /.) + + + + + + sender_port integer + + + Port number of the PostgreSQL instance + this WAL receiver is connected to. + + + + + + conninfo text + + + Connection string used by this WAL receiver, + with security-sensitive fields obfuscated. + + +
@@ -2225,67 +2433,103 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_subscription</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - subid - oid - OID of the subscription - - - subname - name - Name of the subscription - - - pid - integer - Process ID of the subscription worker process - - - relid - Oid - OID of the relation that the worker is synchronizing; null for the - main apply worker - - - received_lsn - pg_lsn - Last write-ahead log location received, the initial value of - this field being 0 - - - last_msg_send_time - timestamp with time zone - Send time of last message received from origin WAL sender - - - last_msg_receipt_time - timestamp with time zone - Receipt time of last message received from origin WAL sender - - - - latest_end_lsn - pg_lsn - Last write-ahead log location reported to origin WAL sender - - - - latest_end_time - timestamp with time zone - Time of last write-ahead log location reported to origin WAL - sender - - + + + + subid oid + + + OID of the subscription + + + + + + subname name + + + Name of the subscription + + + + + + pid integer + + + Process ID of the subscription worker process + + + + + + relid oid + + + OID of the relation that the worker is synchronizing; null for the + main apply worker + + + + + + received_lsn pg_lsn + + + Last write-ahead log location received, the initial value of + this field being 0 + + + + + + last_msg_send_time timestamp with time zone + + + Send time of last message received from origin WAL sender + + + + + + last_msg_receipt_time timestamp with time zone + + + Receipt time of last message received from origin WAL sender + + + + + + latest_end_lsn pg_lsn + + + Last write-ahead log location reported to origin WAL sender + + + + + + latest_end_time timestamp with time zone + + + Time of last write-ahead log location reported to origin WAL + sender + + +
@@ -2298,77 +2542,114 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_ssl</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - pid - integer - Process ID of a backend or WAL sender process - - - ssl - boolean - True if SSL is used on this connection - - - version - text - Version of SSL in use, or NULL if SSL is not in use - on this connection - - - cipher - text - Name of SSL cipher in use, or NULL if SSL is not in use - on this connection - - - bits - integer - Number of bits in the encryption algorithm used, or NULL - if SSL is not used on this connection - - - compression - boolean - True if SSL compression is in use, false if not, - or NULL if SSL is not in use on this connection - - - client_dn - text - Distinguished Name (DN) field from the client certificate - used, or NULL if no client certificate was supplied or if SSL - is not in use on this connection. This field is truncated if the - DN field is longer than NAMEDATALEN (64 characters - in a standard build). - - - - client_serial - numeric - Serial number of the client certificate, or NULL if no client - certificate was supplied or if SSL is not in use on this connection. The - combination of certificate serial number and certificate issuer uniquely - identifies a certificate (unless the issuer erroneously reuses serial - numbers). - - - issuer_dn - text - DN of the issuer of the client certificate, or NULL if no client - certificate was supplied or if SSL is not in use on this connection. - This field is truncated like client_dn. - - + + + + pid integer + + + Process ID of a backend or WAL sender process + + + + + + ssl boolean + + + True if SSL is used on this connection + + + + + + version text + + + Version of SSL in use, or NULL if SSL is not in use + on this connection + + + + + + cipher text + + + Name of SSL cipher in use, or NULL if SSL is not in use + on this connection + + + + + + bits integer + + + Number of bits in the encryption algorithm used, or NULL + if SSL is not used on this connection + + + + + + compression boolean + + + True if SSL compression is in use, false if not, + or NULL if SSL is not in use on this connection + + + + + + client_dn text + + + Distinguished Name (DN) field from the client certificate + used, or NULL if no client certificate was supplied or if SSL + is not in use on this connection. This field is truncated if the + DN field is longer than NAMEDATALEN (64 characters + in a standard build). + + + + + + client_serial numeric + + + Serial number of the client certificate, or NULL if no client + certificate was supplied or if SSL is not in use on this connection. The + combination of certificate serial number and certificate issuer uniquely + identifies a certificate (unless the issuer erroneously reuses serial + numbers). + + + + + + issuer_dn text + + + DN of the issuer of the client certificate, or NULL if no client + certificate was supplied or if SSL is not in use on this connection. + This field is truncated like client_dn. + + +
@@ -2383,41 +2664,58 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_gssapi</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - pid - integer - Process ID of a backend - - - gss_authenticated - boolean - True if GSSAPI authentication was used for this connection - - - principal - text - Principal used to authenticate this connection, or NULL - if GSSAPI was not used to authenticate this connection. This - field is truncated if the principal is longer than - NAMEDATALEN (64 characters in a standard build). - - - - encrypted - boolean - True if GSSAPI encryption is in use on this connection - - + + + + pid integer + + + Process ID of a backend + + + + + + gss_authenticated boolean + + + True if GSSAPI authentication was used for this connection + + + + + + principal text + + + Principal used to authenticate this connection, or NULL + if GSSAPI was not used to authenticate this connection. This + field is truncated if the principal is longer than + NAMEDATALEN (64 characters in a standard build). + + + + + + encrypted boolean + + + True if GSSAPI encryption is in use on this connection + + +
@@ -2433,51 +2731,80 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_archiver</structname> View - - + - Column - Type - Description + + Column Type + + + Description + - archived_count - bigint - Number of WAL files that have been successfully archived + + archived_count bigint + + + Number of WAL files that have been successfully archived + + - last_archived_wal - text - Name of the last WAL file successfully archived + + last_archived_wal text + + + Name of the last WAL file successfully archived + + - last_archived_time - timestamp with time zone - Time of the last successful archive operation + + last_archived_time timestamp with time zone + + + Time of the last successful archive operation + + - failed_count - bigint - Number of failed attempts for archiving WAL files + + failed_count bigint + + + Number of failed attempts for archiving WAL files + + - last_failed_wal - text - Name of the WAL file of the last failed archival operation + + last_failed_wal text + + + Name of the WAL file of the last failed archival operation + + - last_failed_time - timestamp with time zone - Time of the last failed archival operation + + last_failed_time timestamp with time zone + + + Time of the last failed archival operation + + - stats_reset - timestamp with time zone - Time at which these statistics were last reset + + stats_reset timestamp with time zone + + + Time at which these statistics were last reset + @@ -2490,84 +2817,125 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
<structname>pg_stat_bgwriter</structname> View - - + - - Column - Type - Description + + + Column Type + + + Description + - checkpoints_timed - bigint - Number of scheduled checkpoints that have been performed + + checkpoints_timed bigint + + + Number of scheduled checkpoints that have been performed + + - checkpoints_req - bigint - Number of requested checkpoints that have been performed + + checkpoints_req bigint + + + Number of requested checkpoints that have been performed + + - checkpoint_write_time - double precision - - Total amount of time that has been spent in the portion of - checkpoint processing where files are written to disk, in milliseconds - + + checkpoint_write_time double precision + + + Total amount of time that has been spent in the portion of + checkpoint processing where files are written to disk, in milliseconds + + - checkpoint_sync_time - double precision - - Total amount of time that has been spent in the portion of - checkpoint processing where files are synchronized to disk, in - milliseconds - + + checkpoint_sync_time double precision + + + Total amount of time that has been spent in the portion of + checkpoint processing where files are synchronized to disk, in + milliseconds + + - buffers_checkpoint - bigint - Number of buffers written during checkpoints + + buffers_checkpoint bigint + + + Number of buffers written during checkpoints + + - buffers_clean - bigint - Number of buffers written by the background writer + + buffers_clean bigint + + + Number of buffers written by the background writer + + - maxwritten_clean - bigint - Number of times the background writer stopped a cleaning - scan because it had written too many buffers + + maxwritten_clean bigint + + + Number of times the background writer stopped a cleaning + scan because it had written too many buffers + + - buffers_backend - bigint - Number of buffers written directly by a backend + + buffers_backend bigint + + + Number of buffers written directly by a backend + + - buffers_backend_fsync - bigint - Number of times a backend had to execute its own + + buffers_backend_fsync bigint + + + Number of times a backend had to execute its own fsync call (normally the background writer handles those - even when the backend does its own write) + even when the backend does its own write) + + - buffers_alloc - bigint - Number of buffers allocated + + buffers_alloc bigint + + + Number of buffers allocated + + - stats_reset - timestamp with time zone - Time at which these statistics were last reset + + stats_reset timestamp with time zone + + + Time at which these statistics were last reset + - +
@@ -2577,149 +2945,231 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_database</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - datid - oid - OID of this database, or 0 for objects belonging to a shared - relation - - - datname - name - Name of this database, or NULL for shared - objects. - - - numbackends - integer - Number of backends currently connected to this database, or - NULL for shared objects. This is the only column - in this view that returns a value reflecting current state; all other - columns return the accumulated values since the last reset. - - - xact_commit - bigint - Number of transactions in this database that have been - committed - - - xact_rollback - bigint - Number of transactions in this database that have been - rolled back - - - blks_read - bigint - Number of disk blocks read in this database - - - blks_hit - bigint - Number of times disk blocks were found already in the buffer - cache, so that a read was not necessary (this only includes hits in the - PostgreSQL buffer cache, not the operating system's file system cache) - - - - tup_returned - bigint - Number of rows returned by queries in this database - - - tup_fetched - bigint - Number of rows fetched by queries in this database - - - tup_inserted - bigint - Number of rows inserted by queries in this database - - - tup_updated - bigint - Number of rows updated by queries in this database - - - tup_deleted - bigint - Number of rows deleted by queries in this database - - - conflicts - bigint - Number of queries canceled due to conflicts with recovery - in this database. (Conflicts occur only on standby servers; see - for details.) - - - - temp_files - bigint - Number of temporary files created by queries in this database. - All temporary files are counted, regardless of why the temporary file - was created (e.g., sorting or hashing), and regardless of the - setting. - - - - temp_bytes - bigint - Total amount of data written to temporary files by queries in - this database. All temporary files are counted, regardless of why - the temporary file was created, and - regardless of the setting. - - - - deadlocks - bigint - Number of deadlocks detected in this database - - - checksum_failures - bigint - Number of data page checksum failures detected in this - database (or on a shared object), or NULL if data checksums are not - enabled. - - - checksum_last_failure - timestamp with time zone - Time at which the last data page checksum failure was detected in - this database (or on a shared object), or NULL if data checksums are not - enabled. - - - blk_read_time - double precision - Time spent reading data file blocks by backends in this database, - in milliseconds - - - blk_write_time - double precision - Time spent writing data file blocks by backends in this database, - in milliseconds - - - stats_reset - timestamp with time zone - Time at which these statistics were last reset - - + + + + datid oid + + + OID of this database, or 0 for objects belonging to a shared + relation + + + + + + datname name + + + Name of this database, or NULL for shared + objects. + + + + + + numbackends integer + + + Number of backends currently connected to this database, or + NULL for shared objects. This is the only column + in this view that returns a value reflecting current state; all other + columns return the accumulated values since the last reset. + + + + + + xact_commit bigint + + + Number of transactions in this database that have been + committed + + + + + + xact_rollback bigint + + + Number of transactions in this database that have been + rolled back + + + + + + blks_read bigint + + + Number of disk blocks read in this database + + + + + + blks_hit bigint + + + Number of times disk blocks were found already in the buffer + cache, so that a read was not necessary (this only includes hits in the + PostgreSQL buffer cache, not the operating system's file system cache) + + + + + + tup_returned bigint + + + Number of rows returned by queries in this database + + + + + + tup_fetched bigint + + + Number of rows fetched by queries in this database + + + + + + tup_inserted bigint + + + Number of rows inserted by queries in this database + + + + + + tup_updated bigint + + + Number of rows updated by queries in this database + + + + + + tup_deleted bigint + + + Number of rows deleted by queries in this database + + + + + + conflicts bigint + + + Number of queries canceled due to conflicts with recovery + in this database. (Conflicts occur only on standby servers; see + for details.) + + + + + + temp_files bigint + + + Number of temporary files created by queries in this database. + All temporary files are counted, regardless of why the temporary file + was created (e.g., sorting or hashing), and regardless of the + setting. + + + + + + temp_bytes bigint + + + Total amount of data written to temporary files by queries in + this database. All temporary files are counted, regardless of why + the temporary file was created, and + regardless of the setting. + + + + + + deadlocks bigint + + + Number of deadlocks detected in this database + + + + + + checksum_failures bigint + + + Number of data page checksum failures detected in this + database (or on a shared object), or NULL if data checksums are not + enabled. + + + + + + checksum_last_failure timestamp with time zone + + + Time at which the last data page checksum failure was detected in + this database (or on a shared object), or NULL if data checksums are not + enabled. + + + + + + blk_read_time double precision + + + Time spent reading data file blocks by backends in this database, + in milliseconds + + + + + + blk_write_time double precision + + + Time spent writing data file blocks by backends in this database, + in milliseconds + + + + + + stats_reset timestamp with time zone + + + Time at which these statistics were last reset + + +
@@ -2731,57 +3181,87 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_database_conflicts</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - datid - oid - OID of a database - - - datname - name - Name of this database - - - confl_tablespace - bigint - Number of queries in this database that have been canceled due to - dropped tablespaces - - - confl_lock - bigint - Number of queries in this database that have been canceled due to - lock timeouts - - - confl_snapshot - bigint - Number of queries in this database that have been canceled due to - old snapshots - - - confl_bufferpin - bigint - Number of queries in this database that have been canceled due to - pinned buffers - - - confl_deadlock - bigint - Number of queries in this database that have been canceled due to - deadlocks - - + + + + datid oid + + + OID of a database + + + + + + datname name + + + Name of this database + + + + + + confl_tablespace bigint + + + Number of queries in this database that have been canceled due to + dropped tablespaces + + + + + + confl_lock bigint + + + Number of queries in this database that have been canceled due to + lock timeouts + + + + + + confl_snapshot bigint + + + Number of queries in this database that have been canceled due to + old snapshots + + + + + + confl_bufferpin bigint + + + Number of queries in this database that have been canceled due to + pinned buffers + + + + + + confl_deadlock bigint + + + Number of queries in this database that have been canceled due to + deadlocks + + +
@@ -2795,139 +3275,233 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_all_tables</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - relid - oid - OID of a table - - - schemaname - name - Name of the schema that this table is in - - - relname - name - Name of this table - - - seq_scan - bigint - Number of sequential scans initiated on this table - - - seq_tup_read - bigint - Number of live rows fetched by sequential scans - - - idx_scan - bigint - Number of index scans initiated on this table - - - idx_tup_fetch - bigint - Number of live rows fetched by index scans - - - n_tup_ins - bigint - Number of rows inserted - - - n_tup_upd - bigint - Number of rows updated (includes HOT updated rows) - - - n_tup_del - bigint - Number of rows deleted - - - n_tup_hot_upd - bigint - Number of rows HOT updated (i.e., with no separate index - update required) - - - n_live_tup - bigint - Estimated number of live rows - - - n_dead_tup - bigint - Estimated number of dead rows - - - n_mod_since_analyze - bigint - Estimated number of rows modified since this table was last analyzed - - - n_ins_since_vacuum - bigint - Estimated number of rows inserted since this table was last vacuumed - - - last_vacuum - timestamp with time zone - Last time at which this table was manually vacuumed - (not counting VACUUM FULL) - - - last_autovacuum - timestamp with time zone - Last time at which this table was vacuumed by the autovacuum - daemon - - - last_analyze - timestamp with time zone - Last time at which this table was manually analyzed - - - last_autoanalyze - timestamp with time zone - Last time at which this table was analyzed by the autovacuum - daemon - - - vacuum_count - bigint - Number of times this table has been manually vacuumed - (not counting VACUUM FULL) - - - autovacuum_count - bigint - Number of times this table has been vacuumed by the autovacuum - daemon - - - analyze_count - bigint - Number of times this table has been manually analyzed - - - autoanalyze_count - bigint - Number of times this table has been analyzed by the autovacuum - daemon - - + + + + relid oid + + + OID of a table + + + + + + schemaname name + + + Name of the schema that this table is in + + + + + + relname name + + + Name of this table + + + + + + seq_scan bigint + + + Number of sequential scans initiated on this table + + + + + + seq_tup_read bigint + + + Number of live rows fetched by sequential scans + + + + + + idx_scan bigint + + + Number of index scans initiated on this table + + + + + + idx_tup_fetch bigint + + + Number of live rows fetched by index scans + + + + + + n_tup_ins bigint + + + Number of rows inserted + + + + + + n_tup_upd bigint + + + Number of rows updated (includes HOT updated rows) + + + + + + n_tup_del bigint + + + Number of rows deleted + + + + + + n_tup_hot_upd bigint + + + Number of rows HOT updated (i.e., with no separate index + update required) + + + + + + n_live_tup bigint + + + Estimated number of live rows + + + + + + n_dead_tup bigint + + + Estimated number of dead rows + + + + + + n_mod_since_analyze bigint + + + Estimated number of rows modified since this table was last analyzed + + + + + + n_ins_since_vacuum bigint + + + Estimated number of rows inserted since this table was last vacuumed + + + + + + last_vacuum timestamp with time zone + + + Last time at which this table was manually vacuumed + (not counting VACUUM FULL) + + + + + + last_autovacuum timestamp with time zone + + + Last time at which this table was vacuumed by the autovacuum + daemon + + + + + + last_analyze timestamp with time zone + + + Last time at which this table was manually analyzed + + + + + + last_autoanalyze timestamp with time zone + + + Last time at which this table was analyzed by the autovacuum + daemon + + + + + + vacuum_count bigint + + + Number of times this table has been manually vacuumed + (not counting VACUUM FULL) + + + + + + autovacuum_count bigint + + + Number of times this table has been vacuumed by the autovacuum + daemon + + + + + + analyze_count bigint + + + Number of times this table has been manually analyzed + + + + + + autoanalyze_count bigint + + + Number of times this table has been analyzed by the autovacuum + daemon + + +
@@ -2943,58 +3517,92 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_all_indexes</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - relid - oid - OID of the table for this index - - - indexrelid - oid - OID of this index - - - schemaname - name - Name of the schema this index is in - - - relname - name - Name of the table for this index - - - indexrelname - name - Name of this index - - - idx_scan - bigint - Number of index scans initiated on this index - - - idx_tup_read - bigint - Number of index entries returned by scans on this index - - - idx_tup_fetch - bigint - Number of live table rows fetched by simple index scans using this - index - - + + + + relid oid + + + OID of the table for this index + + + + + + indexrelid oid + + + OID of this index + + + + + + schemaname name + + + Name of the schema this index is in + + + + + + relname name + + + Name of the table for this index + + + + + + indexrelname name + + + Name of this index + + + + + + idx_scan bigint + + + Number of index scans initiated on this index + + + + + + idx_tup_read bigint + + + Number of index entries returned by scans on this index + + + + + + idx_tup_fetch bigint + + + Number of live table rows fetched by simple index scans using this + index + + +
@@ -3039,72 +3647,118 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_statio_all_tables</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - relid - oid - OID of a table - - - schemaname - name - Name of the schema that this table is in - - - relname - name - Name of this table - - - heap_blks_read - bigint - Number of disk blocks read from this table - - - heap_blks_hit - bigint - Number of buffer hits in this table - - - idx_blks_read - bigint - Number of disk blocks read from all indexes on this table - - - idx_blks_hit - bigint - Number of buffer hits in all indexes on this table - - - toast_blks_read - bigint - Number of disk blocks read from this table's TOAST table (if any) - - - toast_blks_hit - bigint - Number of buffer hits in this table's TOAST table (if any) - - - tidx_blks_read - bigint - Number of disk blocks read from this table's TOAST table indexes (if any) - - - tidx_blks_hit - bigint - Number of buffer hits in this table's TOAST table indexes (if any) - - + + + + relid oid + + + OID of a table + + + + + + schemaname name + + + Name of the schema that this table is in + + + + + + relname name + + + Name of this table + + + + + + heap_blks_read bigint + + + Number of disk blocks read from this table + + + + + + heap_blks_hit bigint + + + Number of buffer hits in this table + + + + + + idx_blks_read bigint + + + Number of disk blocks read from all indexes on this table + + + + + + idx_blks_hit bigint + + + Number of buffer hits in all indexes on this table + + + + + + toast_blks_read bigint + + + Number of disk blocks read from this table's TOAST table (if any) + + + + + + toast_blks_hit bigint + + + Number of buffer hits in this table's TOAST table (if any) + + + + + + tidx_blks_read bigint + + + Number of disk blocks read from this table's TOAST table indexes (if any) + + + + + + tidx_blks_hit bigint + + + Number of buffer hits in this table's TOAST table indexes (if any) + + +
@@ -3120,52 +3774,82 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_statio_all_indexes</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - relid - oid - OID of the table for this index - - - indexrelid - oid - OID of this index - - - schemaname - name - Name of the schema this index is in - - - relname - name - Name of the table for this index - - - indexrelname - name - Name of this index - - - idx_blks_read - bigint - Number of disk blocks read from this index - - - idx_blks_hit - bigint - Number of buffer hits in this index - - + + + + relid oid + + + OID of the table for this index + + + + + + indexrelid oid + + + OID of this index + + + + + + schemaname name + + + Name of the schema this index is in + + + + + + relname name + + + Name of the table for this index + + + + + + indexrelname name + + + Name of this index + + + + + + idx_blks_read bigint + + + Number of disk blocks read from this index + + + + + + idx_blks_hit bigint + + + Number of buffer hits in this index + + +
@@ -3181,42 +3865,64 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_statio_all_sequences</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - relid - oid - OID of a sequence - - - schemaname - name - Name of the schema this sequence is in - - - relname - name - Name of this sequence - - - blks_read - bigint - Number of disk blocks read from this sequence - - - blks_hit - bigint - Number of buffer hits in this sequence - - + + + + relid oid + + + OID of a sequence + + + + + + schemaname name + + + Name of the schema this sequence is in + + + + + + relname name + + + Name of this sequence + + + + + + blks_read bigint + + + Number of disk blocks read from this sequence + + + + + + blks_hit bigint + + + Number of buffer hits in this sequence + + +
@@ -3228,49 +3934,75 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_user_functions</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - funcid - oid - OID of a function - - - schemaname - name - Name of the schema this function is in - - - funcname - name - Name of this function - - - calls - bigint - Number of times this function has been called - - - total_time - double precision - Total time spent in this function and all other functions - called by it, in milliseconds - - - self_time - double precision - Total time spent in this function itself, not including - other functions called by it, in milliseconds - - + + + + funcid oid + + + OID of a function + + + + + + schemaname name + + + Name of the schema this function is in + + + + + + funcname name + + + Name of this function + + + + + + calls bigint + + + Number of times this function has been called + + + + + + total_time double precision + + + Total time spent in this function and all other functions + called by it, in milliseconds + + + + + + self_time double precision + + + Total time spent in this function itself, not including + other functions called by it, in milliseconds + + +
@@ -3282,65 +4014,102 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structname>pg_stat_slru</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - name - text - name of the SLRU - - - blks_zeroed - bigint - Number of blocks zeroed during initializations - - - blks_hit - bigint - Number of times disk blocks were found already in the SLRU, - so that a read was not necessary (this only includes hits in the - SLRU, not the operating system's file system cache) - - - - blks_read - bigint - Number of disk blocks read for this SLRU - - - blks_written - bigint - Number of disk blocks written for this SLRU - - - blks_exists - bigint - Number of blocks checked for existence for this SLRU - - - flushes - bigint - Number of flushes of dirty data for this SLRU - - - truncates - bigint - Number of truncates for this SLRU - - - stats_reset - timestamp with time zone - Time at which these statistics were last reset - - + + + + name text + + + name of the SLRU + + + + + + blks_zeroed bigint + + + Number of blocks zeroed during initializations + + + + + + blks_hit bigint + + + Number of times disk blocks were found already in the SLRU, + so that a read was not necessary (this only includes hits in the + SLRU, not the operating system's file system cache) + + + + + + blks_read bigint + + + Number of disk blocks read for this SLRU + + + + + + blks_written bigint + + + Number of disk blocks written for this SLRU + + + + + + blks_exists bigint + + + Number of blocks checked for existence for this SLRU + + + + + + flushes bigint + + + Number of flushes of dirty data for this SLRU + + + + + + truncates bigint + + + Number of truncates for this SLRU + + + + + + stats_reset timestamp with time zone + + + Time at which these statistics were last reset + + +
@@ -3828,95 +4597,131 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid, <structname>pg_stat_progress_analyze</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - pid - integer - Process ID of backend. - - - datid - oid - OID of the database to which this backend is connected. - - - datname - name - Name of the database to which this backend is connected. - - - relid - oid - OID of the table being analyzed. - - - phase - text - Current processing phase. See . - - - sample_blks_total - bigint - - Total number of heap blocks that will be sampled. - - - - sample_blks_scanned - bigint - - Number of heap blocks scanned. - - - - ext_stats_total - bigint - - Number of extended statistics. - - - - ext_stats_computed - bigint - - Number of extended statistics computed. This counter only advances - when the phase is computing extended statistics. - - - - child_tables_total - bigint - - Number of child tables. - - - - child_tables_done - bigint - - Number of child tables scanned. This counter only advances when the - phase is acquiring inherited sample rows. - - - - current_child_table_relid - oid - - OID of the child table currently being scanned. This field is - only valid when the phase is - acquiring inherited sample rows. - - - + + + + pid integer + + + Process ID of backend. + + + + + + datid oid + + + OID of the database to which this backend is connected. + + + + + + datname name + + + Name of the database to which this backend is connected. + + + + + + relid oid + + + OID of the table being analyzed. + + + + + + phase text + + + Current processing phase. See . + + + + + + sample_blks_total bigint + + + Total number of heap blocks that will be sampled. + + + + + + sample_blks_scanned bigint + + + Number of heap blocks scanned. + + + + + + ext_stats_total bigint + + + Number of extended statistics. + + + + + + ext_stats_computed bigint + + + Number of extended statistics computed. This counter only advances + when the phase is computing extended statistics. + + + + + + child_tables_total bigint + + + Number of child tables. + + + + + + child_tables_done bigint + + + Number of child tables scanned. This counter only advances when the + phase is acquiring inherited sample rows. + + + + + + current_child_table_relid oid + + + OID of the child table currently being scanned. This field is + only valid when the phase is + acquiring inherited sample rows. + + +
@@ -4005,122 +4810,166 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid, <structname>pg_stat_progress_create_index</structname> View - + - Column - Type - Description + + Column Type + + + Description + - pid - integer - Process ID of backend. + + pid integer + + + Process ID of backend. + + - datid - oid - OID of the database to which this backend is connected. + + datid oid + + + OID of the database to which this backend is connected. + + - datname - name - Name of the database to which this backend is connected. + + datname name + + + Name of the database to which this backend is connected. + + - relid - oid - OID of the table on which the index is being created. + + relid oid + + + OID of the table on which the index is being created. + + - index_relid - oid - OID of the index being created or reindexed. During a - non-concurrent CREATE INDEX, this is 0. + + index_relid oid + + + OID of the index being created or reindexed. During a + non-concurrent CREATE INDEX, this is 0. + + - command - text - + + command text + + The command that is running: CREATE INDEX, CREATE INDEX CONCURRENTLY, REINDEX, or REINDEX CONCURRENTLY. - + + - phase - text - - Current processing phase of index creation. See . - + + phase text + + + Current processing phase of index creation. See . + + - lockers_total - bigint - - Total number of lockers to wait for, when applicable. - + + lockers_total bigint + + + Total number of lockers to wait for, when applicable. + + - lockers_done - bigint - - Number of lockers already waited for. - + + lockers_done bigint + + + Number of lockers already waited for. + + - current_locker_pid - bigint - - Process ID of the locker currently being waited for. - + + current_locker_pid bigint + + + Process ID of the locker currently being waited for. + + - blocks_total - bigint - - Total number of blocks to be processed in the current phase. - + + blocks_total bigint + + + Total number of blocks to be processed in the current phase. + + - blocks_done - bigint - - Number of blocks already processed in the current phase. - + + blocks_done bigint + + + Number of blocks already processed in the current phase. + + - tuples_total - bigint - - Total number of tuples to be processed in the current phase. - + + tuples_total bigint + + + Total number of tuples to be processed in the current phase. + + - tuples_done - bigint - - Number of tuples already processed in the current phase. - + + tuples_done bigint + + + Number of tuples already processed in the current phase. + + - partitions_total - bigint - + + partitions_total bigint + + When creating an index on a partitioned table, this column is set to the total number of partitions on which the index is to be created. - + + - partitions_done - bigint - + + partitions_done bigint + + When creating an index on a partitioned table, this column is set to the number of partitions on which the index has been completed. - + @@ -4262,98 +5111,130 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid,
<structname>pg_stat_progress_vacuum</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - pid - integer - Process ID of backend. - - - datid - oid - OID of the database to which this backend is connected. - - - datname - name - Name of the database to which this backend is connected. - - - relid - oid - OID of the table being vacuumed. - - - phase - text - - Current processing phase of vacuum. See . - - - - heap_blks_total - bigint - + + + + pid integer + + + Process ID of backend. + + + + + + datid oid + + + OID of the database to which this backend is connected. + + + + + + datname name + + + Name of the database to which this backend is connected. + + + + + + relid oid + + + OID of the table being vacuumed. + + + + + + phase text + + + Current processing phase of vacuum. See . + + + + + + heap_blks_total bigint + + Total number of heap blocks in the table. This number is reported as of the beginning of the scan; blocks added later will not be (and need not be) visited by this VACUUM. - - - - heap_blks_scanned - bigint - + + + + + + heap_blks_scanned bigint + + Number of heap blocks scanned. Because the visibility map is used to optimize scans, some blocks will be skipped without inspection; skipped blocks are included in this total, so that this number will eventually become equal to heap_blks_total when the vacuum is complete. This counter only advances when the phase is scanning heap. - - - - heap_blks_vacuumed - bigint - + + + + + + heap_blks_vacuumed bigint + + Number of heap blocks vacuumed. Unless the table has no indexes, this counter only advances when the phase is vacuuming heap. Blocks that contain no dead tuples are skipped, so the counter may sometimes skip forward in large increments. - - - - index_vacuum_count - bigint - + + + + + + index_vacuum_count bigint + + Number of completed index vacuum cycles. - - - - max_dead_tuples - bigint - - Number of dead tuples that we can store before needing to perform - an index vacuum cycle, based on - . - - - - num_dead_tuples - bigint - + + + + + + max_dead_tuples bigint + + + Number of dead tuples that we can store before needing to perform + an index vacuum cycle, based on + . + + + + + + num_dead_tuples bigint + + Number of dead tuples collected since the last index vacuum cycle. - - - + + +
@@ -4451,105 +5332,139 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid, <structname>pg_stat_progress_cluster</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - pid - integer - Process ID of backend. - - - datid - oid - OID of the database to which this backend is connected. - - - datname - name - Name of the database to which this backend is connected. - - - relid - oid - OID of the table being clustered. - - - command - text - - The command that is running. Either CLUSTER or VACUUM FULL. - - - - phase - text - - Current processing phase. See . - - - - cluster_index_relid - oid - + + + + pid integer + + + Process ID of backend. + + + + + + datid oid + + + OID of the database to which this backend is connected. + + + + + + datname name + + + Name of the database to which this backend is connected. + + + + + + relid oid + + + OID of the table being clustered. + + + + + + command text + + + The command that is running. Either CLUSTER or VACUUM FULL. + + + + + + phase text + + + Current processing phase. See . + + + + + + cluster_index_relid oid + + If the table is being scanned using an index, this is the OID of the index being used; otherwise, it is zero. - - - - heap_tuples_scanned - bigint - + + + + + + heap_tuples_scanned bigint + + Number of heap tuples scanned. This counter only advances when the phase is seq scanning heap, index scanning heap or writing new heap. - - - - heap_tuples_written - bigint - + + + + + + heap_tuples_written bigint + + Number of heap tuples written. This counter only advances when the phase is seq scanning heap, index scanning heap or writing new heap. - - - - heap_blks_total - bigint - + + + + + + heap_blks_total bigint + + Total number of heap blocks in the table. This number is reported as of the beginning of seq scanning heap. - - - - heap_blks_scanned - bigint - + + + + + + heap_blks_scanned bigint + + Number of heap blocks scanned. This counter only advances when the phase is seq scanning heap. - - - - index_rebuild_count - bigint - + + + + + + index_rebuild_count bigint + + Number of indexes rebuilt. This counter only advances when the phase is rebuilding index. - - - + + +
@@ -4637,69 +5552,87 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid, <structname>pg_stat_progress_basebackup</structname> View - + - - Column - Type - Description + + + Column Type + + + Description + - - - pid - integer - Process ID of a WAL sender process. - - - phase - text - Current processing phase. See . - - - backup_total - bigint - - Total amount of data that will be streamed. This is estimated and - reported as of the beginning of - streaming database files phase. Note that - this is only an approximation since the database - may change during streaming database files phase - and WAL log may be included in the backup later. This is always - the same value as backup_streamed - once the amount of data streamed exceeds the estimated - total size. If the estimation is disabled in - pg_basebackup - (i.e., --no-estimate-size option is specified), - this is NULL. - - - - backup_streamed - bigint - - Amount of data streamed. This counter only advances - when the phase is streaming database files or - transferring wal files. - - - - tablespaces_total - bigint - - Total number of tablespaces that will be streamed. - - - - tablespaces_streamed - bigint - - Number of tablespaces streamed. This counter only - advances when the phase is streaming database files. - - - + + + + pid integer + + + Process ID of a WAL sender process. + + + + + + phase text + + + Current processing phase. See . + + + + + + backup_total bigint + + + Total amount of data that will be streamed. This is estimated and + reported as of the beginning of + streaming database files phase. Note that + this is only an approximation since the database + may change during streaming database files phase + and WAL log may be included in the backup later. This is always + the same value as backup_streamed + once the amount of data streamed exceeds the estimated + total size. If the estimation is disabled in + pg_basebackup + (i.e., --no-estimate-size option is specified), + this is NULL. + + + + + + backup_streamed bigint + + + Amount of data streamed. This counter only advances + when the phase is streaming database files or + transferring wal files. + + + + + + tablespaces_total bigint + + + Total number of tablespaces that will be streamed. + + + + + + tablespaces_streamed bigint + + + Number of tablespaces streamed. This counter only + advances when the phase is streaming database files. + + +
diff --git a/doc/src/sgml/pgbuffercache.sgml b/doc/src/sgml/pgbuffercache.sgml index b2b5bce480c..bebbc6b732d 100644 --- a/doc/src/sgml/pgbuffercache.sgml +++ b/doc/src/sgml/pgbuffercache.sgml @@ -38,82 +38,103 @@ <structname>pg_buffercache</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - - bufferid - integer - - ID, in the range 1..shared_buffers + + bufferid integer + + + ID, in the range 1..shared_buffers + - relfilenode - oid - pg_class.relfilenode - Filenode number of the relation + + relfilenode oid + (references pg_class.relfilenode) + + + Filenode number of the relation + - reltablespace - oid - pg_tablespace.oid - Tablespace OID of the relation + + reltablespace oid + (references pg_tablespace.oid) + + + Tablespace OID of the relation + - reldatabase - oid - pg_database.oid - Database OID of the relation + + reldatabase oid + (references pg_database.oid) + + + Database OID of the relation + - relforknumber - smallint - - Fork number within the relation; see - include/common/relpath.h + + relforknumber smallint + + + Fork number within the relation; see + include/common/relpath.h + - relblocknumber - bigint - - Page number within the relation + + relblocknumber bigint + + + Page number within the relation + - isdirty - boolean - - Is the page dirty? + + isdirty boolean + + + Is the page dirty? + - usagecount - smallint - - Clock-sweep access count + + usagecount smallint + + + Clock-sweep access count + - pinning_backends - integer - - Number of backends pinning this buffer + + pinning_backends integer + + + Number of backends pinning this buffer + -
diff --git a/doc/src/sgml/pgstatstatements.sgml b/doc/src/sgml/pgstatstatements.sgml index b1d5f3d1dcb..8eddb6ab79a 100644 --- a/doc/src/sgml/pgstatstatements.sgml +++ b/doc/src/sgml/pgstatstatements.sgml @@ -44,253 +44,310 @@ <structname>pg_stat_statements</structname> Columns - - + - Name - Type - References - Description + + Column Type + + + Description + + - userid - oid - pg_authid.oid - OID of user who executed the statement + + userid oid + (references pg_authid.oid) + + + OID of user who executed the statement + - dbid - oid - pg_database.oid - OID of database in which the statement was executed + + dbid oid + (references pg_database.oid) + + + OID of database in which the statement was executed + - queryid - bigint - - Internal hash code, computed from the statement's parse tree + + queryid bigint + + + Internal hash code, computed from the statement's parse tree + - query - text - - Text of a representative statement + + query text + + + Text of a representative statement + - plans - bigint - - Number of times the statement was planned + + plans bigint + + + Number of times the statement was planned + - total_plan_time - double precision - - Total time spent planning the statement, in milliseconds + + total_plan_time double precision + + + Total time spent planning the statement, in milliseconds + - min_plan_time - double precision - - Minimum time spent planning the statement, in milliseconds + + min_plan_time double precision + + + Minimum time spent planning the statement, in milliseconds + - max_plan_time - double precision - - Maximum time spent planning the statement, in milliseconds + + max_plan_time double precision + + + Maximum time spent planning the statement, in milliseconds + - mean_plan_time - double precision - - Mean time spent planning the statement, in milliseconds + + mean_plan_time double precision + + + Mean time spent planning the statement, in milliseconds + - stddev_plan_time - double precision - - Population standard deviation of time spent planning the statement, in milliseconds + + stddev_plan_time double precision + + + Population standard deviation of time spent planning the statement, in milliseconds + - calls - bigint - - Number of times the statement was executed + + calls bigint + + + Number of times the statement was executed + - total_exec_time - double precision - - Total time spent executing the statement, in milliseconds + + total_exec_time double precision + + + Total time spent executing the statement, in milliseconds + - min_exec_time - double precision - - Minimum time spent executing the statement, in milliseconds + + min_exec_time double precision + + + Minimum time spent executing the statement, in milliseconds + - max_exec_time - double precision - - Maximum time spent executing the statement, in milliseconds + + max_exec_time double precision + + + Maximum time spent executing the statement, in milliseconds + - mean_exec_time - double precision - - Mean time spent executing the statement, in milliseconds + + mean_exec_time double precision + + + Mean time spent executing the statement, in milliseconds + - stddev_exec_time - double precision - - Population standard deviation of time spent executing the statement, in milliseconds + + stddev_exec_time double precision + + + Population standard deviation of time spent executing the statement, in milliseconds + - rows - bigint - - Total number of rows retrieved or affected by the statement + + rows bigint + + + Total number of rows retrieved or affected by the statement + - shared_blks_hit - bigint - - Total number of shared block cache hits by the statement + + shared_blks_hit bigint + + + Total number of shared block cache hits by the statement + - shared_blks_read - bigint - - Total number of shared blocks read by the statement + + shared_blks_read bigint + + + Total number of shared blocks read by the statement + - shared_blks_dirtied - bigint - - Total number of shared blocks dirtied by the statement + + shared_blks_dirtied bigint + + + Total number of shared blocks dirtied by the statement + - shared_blks_written - bigint - - Total number of shared blocks written by the statement + + shared_blks_written bigint + + + Total number of shared blocks written by the statement + - local_blks_hit - bigint - - Total number of local block cache hits by the statement + + local_blks_hit bigint + + + Total number of local block cache hits by the statement + - local_blks_read - bigint - - Total number of local blocks read by the statement + + local_blks_read bigint + + + Total number of local blocks read by the statement + - local_blks_dirtied - bigint - - Total number of local blocks dirtied by the statement + + local_blks_dirtied bigint + + + Total number of local blocks dirtied by the statement + - local_blks_written - bigint - - Total number of local blocks written by the statement + + local_blks_written bigint + + + Total number of local blocks written by the statement + - temp_blks_read - bigint - - Total number of temp blocks read by the statement + + temp_blks_read bigint + + + Total number of temp blocks read by the statement + - temp_blks_written - bigint - - Total number of temp blocks written by the statement + + temp_blks_written bigint + + + Total number of temp blocks written by the statement + - blk_read_time - double precision - - - Total time the statement spent reading blocks, in milliseconds - (if is enabled, otherwise zero) - + + blk_read_time double precision + + + Total time the statement spent reading blocks, in milliseconds + (if is enabled, otherwise zero) + - blk_write_time - double precision - - - Total time the statement spent writing blocks, in milliseconds - (if is enabled, otherwise zero) - + + blk_write_time double precision + + + Total time the statement spent writing blocks, in milliseconds + (if is enabled, otherwise zero) + - wal_bytes - numeric - - - Total amount of WAL bytes generated by the statement - + + wal_records bigint + + + Total number of WAL records generated by the statement + - wal_records - bigint - - - Total number of WAL records generated by the statement - + + wal_fpi bigint + + + Total number of WAL full page images generated by the statement + - wal_fpi - bigint - - - Total number of WAL full page images generated by the statement - + + wal_bytes numeric + + + Total amount of WAL bytes generated by the statement + -
diff --git a/doc/src/sgml/stylesheet-fo.xsl b/doc/src/sgml/stylesheet-fo.xsl index 52369cd6725..0c4dff92c46 100644 --- a/doc/src/sgml/stylesheet-fo.xsl +++ b/doc/src/sgml/stylesheet-fo.xsl @@ -79,6 +79,16 @@ + + + + + -3.5em + + + + + diff --git a/doc/src/sgml/stylesheet.css b/doc/src/sgml/stylesheet.css index 11f88cc0be5..6410a479580 100644 --- a/doc/src/sgml/stylesheet.css +++ b/doc/src/sgml/stylesheet.css @@ -96,6 +96,36 @@ td.func_table_entry pre.programlisting { padding-left: 4em; } +/* formatting for entries in tables of catalog/view columns */ + +th.catalog_table_entry p, +td.catalog_table_entry p { + margin-top: 0.1em; + margin-bottom: 0.1em; + padding-left: 4em; + text-align: left; +} + +th.catalog_table_entry p.column_definition { + text-indent: -3.5em; + word-spacing: 0.25em; +} + +td.catalog_table_entry p.column_definition { + text-indent: -3.5em; +} + +p.column_definition code.type { + padding-left: 0.25em; + padding-right: 0.25em; +} + +td.catalog_table_entry pre.programlisting { + margin-top: 0.1em; + margin-bottom: 0.1em; + padding-left: 4em; +} + /* Put these here instead of inside the HTML (see unsetting of admon.style in XSL) so that the web site stylesheet can set its own style. */ @@ -115,6 +145,10 @@ pre.literallayout, .screen, .synopsis, .programlisting { margin-left: 4ex; } +ul.itemizedlist { + margin-left: 2.5rem; +} + .comment { color: red; } var { font-family: monospace; font-style: italic; }