{"schema_version":"1.0","snapshot_date":"2026-09-08","name":"pg_class","kind":"catalog","summary":"tables, indexes, sequences, views (“relations”)","first_version":"9.0","last_version":"19","versions":{"9.0":{"description":"The catalog pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences, views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of \"relations\". Not all columns are meaningful for all relation types.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden system attribute; explicitly select oid).","schema_note":"The documentation omits this OID attribute; verified from the release-tag CATALOG declaration.","source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_0_23/src/include/catalog/pg_class.h","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"Number of 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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastidxid","type":"oid","description":"For a TOAST table, the OID of its index. 0 if not a TOAST table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relistemp","type":"boolean","description":"True if this table is a temporary relation. If so, only the creating session can safely access its contents.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasexclusion","type":"boolean","description":"For a table, true if the table has (or once had) any exclusion constraints; for an index, true if the index supports an exclusion constraint","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.","hidden":false,"type_oid":28,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":26,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as \"keyword=value\" strings","hidden":false,"type_oid":1009,"attnum":27,"type_modifier":-1,"array_dimensions":1,"not_null":false}],"source_url":"https://www.postgresql.org/docs/9.0/catalog-pg-class.html","source_path":"sources/postgresql/9.0/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_0_23/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/9.0/source/pg_class.h","source_column_count":28,"supplemented_columns":["oid"],"documentary_schema_source":"documentation+source-header","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"9.0.23","source_tag":"REL9_0_23","source_path":"sources/runtime/9.0.json","sha256":"6139872c8de09100e6a78d61dfe2772a7bf0db644bdee9a580993294c37b94f8","download":"/data/runtime/9.0.json","passed":true}},"9.1":{"description":"The catalog pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences, views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of \"relations\". Not all columns are meaningful for all relation types.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden system attribute; explicitly select oid).","schema_note":"The documentation omits this OID attribute; verified from the release-tag CATALOG declaration.","source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_1_24/src/include/catalog/pg_class.h","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"Number of 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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastidxid","type":"oid","description":"For a TOAST table, the OID of its index. 0 if not a TOAST table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table, f = foreign table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.","hidden":false,"type_oid":28,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":25,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as \"keyword=value\" strings","hidden":false,"type_oid":1009,"attnum":26,"type_modifier":-1,"array_dimensions":1,"not_null":false}],"source_url":"https://www.postgresql.org/docs/9.1/catalog-pg-class.html","source_path":"sources/postgresql/9.1/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_1_24/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/9.1/source/pg_class.h","source_column_count":27,"supplemented_columns":["oid"],"documentary_schema_source":"documentation+source-header","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"9.1.24","source_tag":"REL9_1_24","source_path":"sources/runtime/9.1.json","sha256":"cc91915f2ee13a93e1d465c259e56cd77b83b10f984ec2a363292bc5dff0c460","download":"/data/runtime/9.1.json","passed":true}},"9.2":{"description":"The catalog pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences, views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of \"relations\". Not all columns are meaningful for all relation types.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden system attribute; explicitly select oid).","schema_note":"The documentation omits this OID attribute; verified from the release-tag CATALOG declaration.","source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_2_24/src/include/catalog/pg_class.h","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"Number of 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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastidxid","type":"oid","description":"For a TOAST table, the OID of its index. 0 if not a TOAST table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table, f = foreign table","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.","hidden":false,"type_oid":28,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":26,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as \"keyword=value\" strings","hidden":false,"type_oid":1009,"attnum":27,"type_modifier":-1,"array_dimensions":1,"not_null":false}],"source_url":"https://www.postgresql.org/docs/9.2/catalog-pg-class.html","source_path":"sources/postgresql/9.2/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_2_24/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/9.2/source/pg_class.h","source_column_count":28,"supplemented_columns":["oid"],"documentary_schema_source":"documentation+source-header","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"9.2.24","source_tag":"REL9_2_24","source_path":"sources/runtime/9.2.json","sha256":"aaa5df7d5bba5dacf1915b63ac57b761b023daa091509426412d523a019ec64e","download":"/data/runtime/9.2.json","passed":true}},"9.3":{"description":"The catalog pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences, views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of \"relations\". Not all columns are meaningful for all relation types.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden attribute; must be explicitly selected)","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"Number of 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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastidxid","type":"oid","description":"For a TOAST table, the OID of its index. 0 if not a TOAST table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, v = view, m = materialized view, c = composite type, t = TOAST table, f = foreign table","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.","hidden":false,"type_oid":28,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":28,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as \"keyword=value\" strings","hidden":false,"type_oid":1009,"attnum":29,"type_modifier":-1,"array_dimensions":1,"not_null":false}],"source_url":"https://www.postgresql.org/docs/9.3/catalog-pg-class.html","source_path":"sources/postgresql/9.3/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_3_25/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/9.3/source/pg_class.h","source_column_count":30,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"9.3.25","source_tag":"REL9_3_25","source_path":"sources/runtime/9.3.json","sha256":"1ed860ab5aca75ba818d25968ea7c48c2e4b3e53e6acef09dee8c5299e9dee8d","download":"/data/runtime/9.3.json","passed":true}},"9.4":{"description":"The catalog pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences, views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of \"relations\". Not all columns are meaningful for all relation types.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden attribute; must be explicitly selected)","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"Number of 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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, v = view, m = materialized view, c = composite type, t = TOAST table, f = foreign table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"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","documented_type":"char","hidden":false,"type_oid":18,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.","hidden":false,"type_oid":28,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":28,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as \"keyword=value\" strings","hidden":false,"type_oid":1009,"attnum":29,"type_modifier":-1,"array_dimensions":1,"not_null":false}],"source_url":"https://www.postgresql.org/docs/9.4/catalog-pg-class.html","source_path":"sources/postgresql/9.4/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_4_26/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/9.4/source/pg_class.h","source_column_count":30,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"9.4.26","source_tag":"REL9_4_26","source_path":"sources/runtime/9.4.json","sha256":"a831c730344da5b72dcf38acfd9849752eb92ab65e11a19d5b29241e4d18fbfa","download":"/data/runtime/9.4.json","passed":true}},"9.5":{"description":"The catalog pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences, views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of \"relations\". Not all columns are meaningful for all relation types.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden attribute; must be explicitly selected)","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"Number of 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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, v = view, m = materialized view, c = composite type, t = TOAST table, f = foreign table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form \"replica identity\" for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.","hidden":false,"type_oid":28,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":30,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as \"keyword=value\" strings","hidden":false,"type_oid":1009,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false}],"source_url":"https://www.postgresql.org/docs/9.5/catalog-pg-class.html","source_path":"sources/postgresql/9.5/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_5_25/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/9.5/source/pg_class.h","source_column_count":32,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"9.5.25","source_tag":"REL9_5_25","source_path":"sources/runtime/9.5.json","sha256":"e88dd015104edee6f75859dd866ada89d75b64ed659d06fca75fdc32a8710073","download":"/data/runtime/9.5.json","passed":true}},"9.6":{"description":"The catalog pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences, views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of \"relations\". Not all columns are meaningful for all relation types.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden attribute; must be explicitly selected)","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"Number of 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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, v = view, m = materialized view, c = composite type, t = TOAST table, f = foreign table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form \"replica identity\" for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.","hidden":false,"type_oid":28,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":30,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as \"keyword=value\" strings","hidden":false,"type_oid":1009,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false}],"source_url":"https://www.postgresql.org/docs/9.6/catalog-pg-class.html","source_path":"sources/postgresql/9.6/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL9_6_24/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/9.6/source/pg_class.h","source_column_count":32,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"9.6.24","source_tag":"REL9_6_24","source_path":"sources/runtime/9.6.json","sha256":"1ca8f057346ec95060d5998a8bb78c0edbe82ab6f9a7dce97161db42175f720b","download":"/data/runtime/9.6.json","passed":true}},"10":{"description":"The catalog pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all columns are meaningful for all relation types.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden attribute; must be explicitly selected)","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"Number of 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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/10/catalog-pg-class.html","source_path":"sources/postgresql/10/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_10_23/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/10/source/pg_class.h","source_column_count":34,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"10.23","source_tag":"REL_10_23","source_path":"sources/runtime/10.json","sha256":"771b47d523345a747771212e1906232069144bcea51701d02d27f77642e513d4","download":"/data/runtime/10.json","passed":true}},"11":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier (hidden attribute; must be explicitly selected)","hidden":true,"type_oid":26,"attnum":-2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is an index, the access method used (B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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.)","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see GRANT and REVOKE for details","hidden":false,"type_oid":1034,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/11/catalog-pg-class.html","source_path":"sources/postgresql/11/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_11_22/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/11/source/pg_class.h","source_column_count":34,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-7,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-6,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-5,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-4,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-3,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"11.22","source_tag":"REL_11_22","source_path":"sources/runtime/11.json","sha256":"66d6fe23f7308835f6a534793a8c5ffaec8760b9c1b0a4e753271992b6838f5f","download":"/data/runtime/11.json","passed":true}},"12":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier","hidden":false,"type_oid":26,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table or index has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see Section 5.7 for details","hidden":false,"type_oid":1034,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/12/catalog-pg-class.html","source_path":"sources/postgresql/12/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_12_22/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/12/source/pg_class.h","source_column_count":33,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-6,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-5,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-4,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-3,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-2,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"12.22","source_tag":"REL_12_22","source_path":"sources/runtime/12.json","sha256":"9dc5a3cca5c6c3412ee36e22ae90b8a30048e5a3e1fecbc3890f2a3a52fef2e2","download":"/data/runtime/12.json","passed":true}},"13":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier","hidden":false,"type_oid":26,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"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)","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type, zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table or index has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see Section 5.7 for details","hidden":false,"type_oid":1034,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/13/catalog-pg-class.html","source_path":"sources/postgresql/13/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_13_23/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/13/source/pg_class.h","source_column_count":33,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-6,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-5,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-4,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-3,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-2,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"13.23","source_tag":"REL_13_23","source_path":"sources/runtime/13.json","sha256":"1128c8c796527aba4c5afab7f124048cbc2d967bf732f00d0fac9ccc52dc09ac","download":"/data/runtime/13.json","passed":true}},"14":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier","hidden":false,"type_oid":26,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type; zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.); otherwise zero (zero occurs for sequences, as well as relations without storage, such as views)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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. If the table has never yet been vacuumed or analyzed, reltuples contains -1 indicating that the row count is unknown.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"OID of the TOAST table associated with this table, zero if none. The TOAST table stores large attributes “out of line” in a secondary table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table or index has (or once had) any inheritance children","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row-level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row-level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise zero. That state is only visible internally; this field should never contain anything other than zero for a user-visible relation.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see Section 5.7 for details","hidden":false,"type_oid":1034,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/14/catalog-pg-class.html","source_path":"sources/postgresql/14/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_14_24/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/14/source/pg_class.h","source_column_count":33,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-6,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-5,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-4,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-3,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-2,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"14.24","source_tag":"REL_14_24","source_path":"sources/runtime/14.json","sha256":"a25b938143c5125bfde6d25e4cd5aed449d19541061f26ed83d315bc4ba93d5a","download":"/data/runtime/14.json","passed":true}},"15":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier","hidden":false,"type_oid":26,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type; zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.); otherwise zero (zero occurs for sequences, as well as relations without storage, such as views)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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. If the table has never yet been vacuumed or analyzed, reltuples contains -1 indicating that the row count is unknown.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"OID of the TOAST table associated with this table, zero if none. The TOAST table stores large attributes “out of line” in a secondary table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table/sequence, u = unlogged table/sequence, t = temporary table/sequence","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table or index has (or once had) any inheritance children or partitions","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row-level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row-level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise zero. That state is only visible internally; this field should never contain anything other than zero for a user-visible relation.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see Section 5.7 for details","hidden":false,"type_oid":1034,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/15/catalog-pg-class.html","source_path":"sources/postgresql/15/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_15_19/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/15/source/pg_class.h","source_column_count":33,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-6,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-5,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-4,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-3,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-2,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"15.19","source_tag":"REL_15_19","source_path":"sources/runtime/15.json","sha256":"d469cb73c6b268f38fb37f7023e41008cb63a56f2cb4c2df0bf529bc510fe459","download":"/data/runtime/15.json","passed":true}},"16":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier","hidden":false,"type_oid":26,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type; zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.); otherwise zero (zero occurs for sequences, as well as relations without storage, such as views)","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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. If the table has never yet been vacuumed or analyzed, reltuples contains -1 indicating that the row count is unknown.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"OID of the TOAST table associated with this table, zero if none. The TOAST table stores large attributes “out of line” in a secondary table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table/sequence, u = unlogged table/sequence, t = temporary table/sequence","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table or index has (or once had) any inheritance children or partitions","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row-level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row-level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise zero. That state is only visible internally; this field should never contain anything other than zero for a user-visible relation.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see Section 5.7 for details","hidden":false,"type_oid":1034,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/16/catalog-pg-class.html","source_path":"sources/postgresql/16/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_16_15/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/16/source/pg_class.h","source_column_count":33,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-6,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-5,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-4,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-3,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-2,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"16.15","source_tag":"REL_16_15","source_path":"sources/runtime/16.json","sha256":"f87a8cf739ef163be7d1f100058c92d656451325e603c920151f7dcaa5834a10","download":"/data/runtime/16.json","passed":true}},"17":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier","hidden":false,"type_oid":26,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type; zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"The access method used to access this table or index. Not meaningful if the relation is a sequence or has no on-disk file, except for partitioned tables, where, if set, it takes precedence over default_table_access_method when determining the access method to use for partitions created when one is not specified in the creation command.","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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. If the table has never yet been vacuumed or analyzed, reltuples contains -1 indicating that the row count is unknown.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"OID of the TOAST table associated with this table, zero if none. The TOAST table stores large attributes “out of line” in a secondary table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table/sequence, u = unlogged table/sequence, t = temporary table/sequence","documented_type":"char","hidden":false,"type_oid":18,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table or index has (or once had) any inheritance children or partitions","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row-level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row-level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise zero. That state is only visible internally; this field should never contain anything other than zero for a user-visible relation.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see Section 5.8 for details","hidden":false,"type_oid":1034,"attnum":31,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/17/catalog-pg-class.html","source_path":"sources/postgresql/17/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_17_11/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/17/source/pg_class.h","source_column_count":33,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-6,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-5,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-4,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-3,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-2,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"17.11","source_tag":"REL_17_11","source_path":"sources/runtime/17.json","sha256":"653a238d16492defd799badc4120c64fc82adc0f35b8229bc75bbc9082e26f36","download":"/data/runtime/17.json","passed":true}},"18":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier","hidden":false,"type_oid":26,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type; zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"The access method used to access this table or index. Not meaningful if the relation is a sequence or has no on-disk file, except for partitioned tables, where, if set, it takes precedence over default_table_access_method when determining the access method to use for partitions created when one is not specified in the creation command.","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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. If the table has never yet been vacuumed or analyzed, reltuples contains -1 indicating that the row count is unknown.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallfrozen","type":"integer","description":"Number of pages that are marked all-frozen in the table's visibility map. This is only an estimate used for triggering autovacuums. It can also be used along with relallvisible for scheduling manual vacuums and tuning vacuum's freezing behavior. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"OID of the TOAST table associated with this table, zero if none. The TOAST table stores large attributes “out of line” in a secondary table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table/sequence, u = unlogged table/sequence, t = temporary table/sequence","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","documented_type":"char","hidden":false,"type_oid":18,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table or index has (or once had) any inheritance children or partitions","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row-level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row-level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise zero. That state is only visible internally; this field should never contain anything other than zero for a user-visible relation.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":31,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see Section 5.8 for details","hidden":false,"type_oid":1034,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":33,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":34,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/18/catalog-pg-class.html","source_path":"sources/postgresql/18/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_18_6/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/18/source/pg_class.h","source_column_count":34,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-6,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-5,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-4,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-3,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-2,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"18.6","source_tag":"REL_18_6","source_path":"sources/runtime/18.json","sha256":"e5d02941f7df86ec76afd1483b9f4e940c2c145a900bb1bf32b4feff992800bf","download":"/data/runtime/18.json","passed":true}},"19":{"description":"The catalog pg_class describes tables and other objects that have columns or are otherwise similar to a table. This includes indexes (but see also pg_index), sequences (but see also pg_sequence), views, materialized views, composite types, and TOAST tables; see relkind. Below, when we mean all of these kinds of objects we speak of “relations”. Not all of pg_class's columns are meaningful for all relation kinds.","columns":[{"name":"oid","type":"oid","description":"Row identifier","hidden":false,"type_oid":26,"attnum":1,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relname","type":"name","description":"Name of the table, index, view, etc.","hidden":false,"type_oid":19,"attnum":2,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnamespace","type":"oid","description":"The OID of the namespace that contains this relation","references":"pg_namespace.oid","hidden":false,"type_oid":26,"attnum":3,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltype","type":"oid","description":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and TOAST tables, which have no pg_type entry","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":4,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reloftype","type":"oid","description":"For typed tables, the OID of the underlying composite type; zero for all other relations","references":"pg_type.oid","hidden":false,"type_oid":26,"attnum":5,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relowner","type":"oid","description":"Owner of the relation","references":"pg_authid.oid","hidden":false,"type_oid":26,"attnum":6,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relam","type":"oid","description":"The access method used to access this table or index. Not meaningful if the relation is a sequence or has no on-disk file, except for partitioned tables, where, if set, it takes precedence over default_table_access_method when determining the access method to use for partitions created when one is not specified in the creation command.","references":"pg_am.oid","hidden":false,"type_oid":26,"attnum":7,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfilenode","type":"oid","description":"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","hidden":false,"type_oid":26,"attnum":8,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltablespace","type":"oid","description":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command.","references":"pg_tablespace.oid","hidden":false,"type_oid":26,"attnum":9,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpages","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":10,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltuples","type":"real","description":"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. If the table has never yet been vacuumed or analyzed, reltuples contains -1 indicating that the row count is unknown.","documented_type":"float4","hidden":false,"type_oid":700,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":12,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relallfrozen","type":"integer","description":"Number of pages that are marked all-frozen in the table's visibility map. This is only an estimate used for triggering autovacuums. It can also be used along with relallvisible for scheduling manual vacuums and tuning vacuum's freezing behavior. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"reltoastrelid","type":"oid","description":"OID of the TOAST table associated with this table, zero if none. The TOAST table stores large attributes “out of line” in a secondary table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":14,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasindex","type":"boolean","description":"True if this is a table and it has (or recently had) any indexes","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relisshared","type":"boolean","description":"True if this table is shared across all databases in the cluster. Only certain system catalogs (such as pg_database) are shared.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":16,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpersistence","type":"\"char\"","description":"p = permanent table/sequence, u = unlogged table/sequence, t = temporary table/sequence","documented_type":"char","hidden":false,"type_oid":18,"attnum":17,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relkind","type":"\"char\"","description":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index, g = property graph","documented_type":"char","hidden":false,"type_oid":18,"attnum":18,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relnatts","type":"smallint","description":"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.","documented_type":"int2","hidden":false,"type_oid":21,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relchecks","type":"smallint","description":"Number of CHECK constraints on the table; see pg_constraint catalog","documented_type":"int2","hidden":false,"type_oid":21,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasrules","type":"boolean","description":"True if table has (or once had) rules; see pg_rewrite catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhastriggers","type":"boolean","description":"True if table has (or once had) triggers; see pg_trigger catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":22,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhassubclass","type":"boolean","description":"True if table or index has (or once had) any inheritance children or partitions","documented_type":"bool","hidden":false,"type_oid":16,"attnum":23,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrowsecurity","type":"boolean","description":"True if table has row-level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row-level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":26,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relreplident","type":"\"char\"","description":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","documented_type":"char","hidden":false,"type_oid":18,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relispartition","type":"boolean","description":"True if table or index is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relrewrite","type":"oid","description":"For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise zero. That state is only visible internally; this field should never contain anything other than zero for a user-visible relation.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":29,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relfrozenxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":30,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":31,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relacl","type":"aclitem[]","description":"Access privileges; see Section 5.9 for details","hidden":false,"type_oid":1034,"attnum":32,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"reloptions","type":"text[]","description":"Access-method-specific options, as “keyword=value” strings","hidden":false,"type_oid":1009,"attnum":33,"type_modifier":-1,"array_dimensions":1,"not_null":false},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":34,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"source_url":"https://www.postgresql.org/docs/19/catalog-pg-class.html","source_path":"sources/postgresql/19/catalog-pg-class.html","schema_source":"runtime+documentation","definition_source_url":"https://raw.githubusercontent.com/postgres/postgres/REL_19_BETA3/src/include/catalog/pg_class.h","definition_source_path":"sources/postgresql/19/source/pg_class.h","source_column_count":34,"documentary_schema_source":"documentation","relation_oid":1259,"shared":false,"relkind":"r","system_columns":[{"name":"tableoid","attnum":-6,"type_oid":26,"type":"oid","type_name":"oid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmax","attnum":-5,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmax","attnum":-4,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"cmin","attnum":-3,"type_oid":29,"type":"cid","type_name":"cid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"xmin","attnum":-2,"type_oid":28,"type":"xid","type_name":"xid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":4,"by_value":true,"storage":"p","alignment":"i","hidden":true},{"name":"ctid","attnum":-1,"type_oid":27,"type":"tid","type_name":"tid","type_schema":"pg_catalog","type_modifier":-1,"array_dimensions":0,"not_null":true,"length":6,"by_value":false,"storage":"p","alignment":"s","hidden":true}],"runtime_validation":{"release":"19beta3","source_tag":"REL_19_BETA3","source_path":"sources/runtime/19.json","sha256":"2d1f0c65a5fa656dc86cb9648f80baee3654b976dc6ba69190cd1d49c61e6d9a","download":"/data/runtime/19.json","passed":true}}},"changes":[{"from":"9.0","to":"9.1","status":"changed","added_columns":[{"name":"relpersistence","type":"\"char\"","description":"p = permanent table, u = unlogged table, t = temporary table","documented_type":"char","hidden":false,"type_oid":18,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"removed_columns":[{"name":"relistemp","type":"boolean","description":"True if this table is a temporary relation. If so, only the creating session can safely access its contents.","documented_type":"bool","hidden":false,"type_oid":16,"attnum":15,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relhasexclusion","type":"boolean","description":"For a table, true if the table has (or once had) any exclusion constraints; for an index, true if the index supports an exclusion constraint","documented_type":"bool","hidden":false,"type_oid":16,"attnum":21,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"type_changes":[],"description_changes":[{"name":"relkind","from":"r = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table","to":"r = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table, f = foreign table"}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":true},{"from":"9.1","to":"9.2","status":"changed","added_columns":[{"name":"relallvisible","type":"integer","description":"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.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":11,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"removed_columns":[],"type_changes":[],"description_changes":[],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":true},{"from":"9.2","to":"9.3","status":"changed","added_columns":[{"name":"relispopulated","type":"boolean","description":"True if relation is populated (this is true for all relations other than some materialized views)","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relminmxid","type":"xid","description":"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.","hidden":false,"type_oid":28,"attnum":27,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"removed_columns":[],"type_changes":[],"description_changes":[{"name":"oid","from":"Row identifier (hidden system attribute; explicitly select oid).","to":"Row identifier (hidden attribute; must be explicitly selected)"},{"name":"relkind","from":"r = ordinary table, i = index, S = sequence, v = view, c = composite type, t = TOAST table, f = foreign table","to":"r = ordinary table, i = index, S = sequence, v = view, m = materialized view, c = composite type, t = TOAST table, f = foreign table"}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":true,"column_order_changed":false,"structural":true},{"from":"9.3","to":"9.4","status":"changed","added_columns":[{"name":"relreplident","type":"\"char\"","description":"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","documented_type":"char","hidden":false,"type_oid":18,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"removed_columns":[{"name":"reltoastidxid","type":"oid","description":"For a TOAST table, the OID of its index. 0 if not a TOAST table.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"type_changes":[],"description_changes":[],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":true},{"from":"9.4","to":"9.5","status":"changed","added_columns":[{"name":"relrowsecurity","type":"boolean","description":"True if table has row level security enabled; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":24,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relforcerowsecurity","type":"boolean","description":"True if row level security (when enabled) will also apply to table owner; see pg_policy catalog","documented_type":"bool","hidden":false,"type_oid":16,"attnum":25,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"removed_columns":[],"type_changes":[],"description_changes":[{"name":"relreplident","from":"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","to":"Columns used to form \"replica identity\" for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)"}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":true},{"from":"9.6","to":"10","status":"changed","added_columns":[{"name":"relispartition","type":"boolean","description":"True if table is a partition","documented_type":"bool","hidden":false,"type_oid":16,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true},{"name":"relpartbound","type":"pg_node_tree","description":"If table is a partition (see relispartition), internal representation of the partition bound","hidden":false,"type_oid":194,"attnum":33,"type_modifier":-1,"array_dimensions":0,"not_null":false}],"removed_columns":[],"type_changes":[],"description_changes":[{"name":"relfilenode","from":"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","to":"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"},{"name":"relfrozenxid","from":"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_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table.","to":"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."},{"name":"relkind","from":"r = ordinary table, i = index, S = sequence, v = view, m = materialized view, c = composite type, t = TOAST table, f = foreign table","to":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table"},{"name":"reloptions","from":"Access-method-specific options, as \"keyword=value\" strings","to":"Access-method-specific options, as “keyword=value” strings"},{"name":"relreplident","from":"Columns used to form \"replica identity\" for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)","to":"Columns used to form “replica identity” for rows: d = default (primary key, if any), n = nothing, f = all columns, i = index with indisreplident set (same as nothing if the index used has been dropped)"},{"name":"reltoastrelid","from":"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.","to":"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."}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":true,"column_order_changed":false,"structural":true},{"from":"10","to":"11","status":"changed","added_columns":[{"name":"relrewrite","type":"oid","description":"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.","references":"pg_class.oid","hidden":false,"type_oid":26,"attnum":28,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"removed_columns":[{"name":"relhaspkey","type":"boolean","description":"True if the table has (or once had) a primary key","documented_type":"bool","hidden":false,"type_oid":16,"attnum":20,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"type_changes":[],"description_changes":[{"name":"relispartition","from":"True if table is a partition","to":"True if table or index is a partition"},{"name":"relkind","from":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table","to":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index"},{"name":"reltuples","from":"Number of 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.","to":"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."}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":true,"column_order_changed":false,"structural":true},{"from":"11","to":"12","status":"changed","added_columns":[],"removed_columns":[{"name":"relhasoids","type":"boolean","description":"True if we generate an OID for each row of the relation","documented_type":"bool","hidden":false,"type_oid":16,"attnum":19,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"type_changes":[],"description_changes":[{"name":"oid","from":"Row identifier (hidden attribute; must be explicitly selected)","to":"Row identifier"},{"name":"relacl","from":"Access privileges; see GRANT and REVOKE for details","to":"Access privileges; see Section 5.7 for details"},{"name":"relam","from":"If this is an index, the access method used (B-tree, hash, etc.)","to":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.)"},{"name":"relhassubclass","from":"True if table has (or once had) any inheritance children","to":"True if table or index has (or once had) any inheritance children"},{"name":"reltablespace","from":"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.)","to":"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, except for partitioned tables, where this is the tablespace in which partitions will be created when one is not specified in the creation command."}],"reference_changes":[],"attribute_changes":[{"name":"oid","attribute":"hidden","from":true,"to":false}],"relation_description_changed":false,"column_order_changed":false,"structural":true},{"from":"13","to":"14","status":"changed","added_columns":[],"removed_columns":[],"type_changes":[],"description_changes":[{"name":"relam","from":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.)","to":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.); otherwise zero (zero occurs for sequences, as well as relations without storage, such as views)"},{"name":"relforcerowsecurity","from":"True if row level security (when enabled) will also apply to table owner; see pg_policy catalog","to":"True if row-level security (when enabled) will also apply to table owner; see pg_policy catalog"},{"name":"reloftype","from":"For typed tables, the OID of the underlying composite type, zero for all other relations","to":"For typed tables, the OID of the underlying composite type; zero for all other relations"},{"name":"relrewrite","from":"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.","to":"For new relations being written during a DDL operation that requires a table rewrite, this contains the OID of the original relation; otherwise zero. That state is only visible internally; this field should never contain anything other than zero for a user-visible relation."},{"name":"relrowsecurity","from":"True if table has row level security enabled; see pg_policy catalog","to":"True if table has row-level security enabled; see pg_policy catalog"},{"name":"reltoastrelid","from":"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.","to":"OID of the TOAST table associated with this table, zero if none. The TOAST table stores large attributes “out of line” in a secondary table."},{"name":"reltuples","from":"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.","to":"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. If the table has never yet been vacuumed or analyzed, reltuples contains -1 indicating that the row count is unknown."},{"name":"reltype","from":"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)","to":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry"}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":false},{"from":"14","to":"15","status":"changed","added_columns":[],"removed_columns":[],"type_changes":[],"description_changes":[{"name":"relhassubclass","from":"True if table or index has (or once had) any inheritance children","to":"True if table or index has (or once had) any inheritance children or partitions"},{"name":"relpersistence","from":"p = permanent table, u = unlogged table, t = temporary table","to":"p = permanent table/sequence, u = unlogged table/sequence, t = temporary table/sequence"}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":false},{"from":"16","to":"17","status":"changed","added_columns":[],"removed_columns":[],"type_changes":[],"description_changes":[{"name":"relacl","from":"Access privileges; see Section 5.7 for details","to":"Access privileges; see Section 5.8 for details"},{"name":"relam","from":"If this is a table or an index, the access method used (heap, B-tree, hash, etc.); otherwise zero (zero occurs for sequences, as well as relations without storage, such as views)","to":"The access method used to access this table or index. Not meaningful if the relation is a sequence or has no on-disk file, except for partitioned tables, where, if set, it takes precedence over default_table_access_method when determining the access method to use for partitions created when one is not specified in the creation command."}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":false},{"from":"17","to":"18","status":"changed","added_columns":[{"name":"relallfrozen","type":"integer","description":"Number of pages that are marked all-frozen in the table's visibility map. This is only an estimate used for triggering autovacuums. It can also be used along with relallvisible for scheduling manual vacuums and tuning vacuum's freezing behavior. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX.","documented_type":"int4","hidden":false,"type_oid":23,"attnum":13,"type_modifier":-1,"array_dimensions":0,"not_null":true}],"removed_columns":[],"type_changes":[],"description_changes":[],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":true},{"from":"18","to":"19","status":"changed","added_columns":[],"removed_columns":[],"type_changes":[],"description_changes":[{"name":"relacl","from":"Access privileges; see Section 5.8 for details","to":"Access privileges; see Section 5.9 for details"},{"name":"relkind","from":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index","to":"r = ordinary table, i = index, S = sequence, t = TOAST table, v = view, m = materialized view, c = composite type, f = foreign table, p = partitioned table, I = partitioned index, g = property graph"},{"name":"reltype","from":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and toast tables, which have no pg_type entry","to":"The OID of the data type that corresponds to this table's row type, if any; zero for indexes, sequences, and TOAST tables, which have no pg_type entry"}],"reference_changes":[],"attribute_changes":[],"relation_description_changed":false,"column_order_changed":false,"structural":false}]}
