Глава 55. Системные каталоги
Содержание
- 55.1. Обзор
- 55.2.
pg_aggregate
- 55.3.
pg_am
- 55.4.
pg_amop
- 55.5.
pg_amproc
- 55.6.
pg_attrdef
- 55.7.
pg_attribute
- 55.8.
pg_authid
- 55.9.
pg_auth_members
- 55.10.
pg_cast
- 55.11.
pg_class
- 55.12.
pg_collation
- 55.13.
pg_constraint
- 55.14.
pg_conversion
- 55.15.
pg_database
- 55.16.
pg_db_role_setting
- 55.17.
pg_default_acl
- 55.18.
pg_depend
- 55.19.
pg_description
- 55.20.
pg_enum
- 55.21.
pg_event_trigger
- 55.22.
pg_extension
- 55.23.
pg_foreign_data_wrapper
- 55.24.
pg_foreign_server
- 55.25.
pg_foreign_table
- 55.26.
pg_index
- 55.27.
pg_inherits
- 55.28.
pg_init_privs
- 55.29.
pg_language
- 55.30.
pg_largeobject
- 55.31.
pg_largeobject_metadata
- 55.32.
pg_namespace
- 55.33.
pg_opclass
- 55.34.
pg_operator
- 55.35.
pg_opfamily
- 55.36.
pg_parameter_acl
- 55.37.
pg_partitioned_table
- 55.38.
pg_policy
- 55.39.
pg_proc
- 55.40.
pg_profile
- 55.41.
pg_publication
- 55.42.
pg_publication_namespace
- 55.43.
pg_publication_rel
- 55.44.
pg_range
- 55.45.
pg_replication_origin
- 55.46.
pg_rewrite
- 55.47.
pg_role_password
- 55.48.
pg_seclabel
- 55.49.
pg_sequence
- 55.50.
pg_shdepend
- 55.51.
pg_shdescription
- 55.52.
pg_shseclabel
- 55.53.
pg_statistic
- 55.54.
pg_statistic_ext
- 55.55.
pg_statistic_ext_data
- 55.56.
pg_subscription
- 55.57.
pg_subscription_rel
- 55.58.
pg_tablespace
- 55.59.
pg_transform
- 55.60.
pg_trigger
- 55.61.
pg_ts_config
- 55.62.
pg_ts_config_map
- 55.63.
pg_ts_dict
- 55.64.
pg_ts_parser
- 55.65.
pg_ts_template
- 55.66.
pg_type
- 55.67.
pg_user_mapping
Системные каталоги — это место, где система управления реляционной базой данных хранит метаданные схемы, в частности информацию о таблицах и столбцах, а также служебные сведения. Системные каталоги Postgres Pro представляют собой обычные таблицы. Поэтому вы можете удалить и пересоздать их, добавить столбцы, изменить и добавить строки, т. е. разными способами вмешаться в работу системы. Обычно модифицировать системные каталоги вручную не следует, для всего этого, как правило, есть команды SQL. (Например, CREATE DATABASE
вставляет строку в каталог pg_database
— и фактически создаёт базу данных на диске.) Исключение составляют только особенные эзотерические операции, но многие из них со временем становятся выполнимыми посредством SQL-команд, так что потребность напрямую модифицировать системные каталоги постоянно уменьшается.
54.26. pg_index
#
The catalog pg_index
contains part of the information about indexes. The rest is mostly in pg_class
.
Table 54.26. pg_index
Columns
Column Type Description |
---|
The OID of the |
The OID of the |
The total number of columns in the index (duplicates |
The number of key columns in the index, not counting any included columns, which are merely stored and do not participate in the index semantics |
If true, this is a unique index |
This value is only used for unique indexes. If false, this unique index will consider null values distinct (so the index can contain multiple null values in a column, the default Postgres Pro behavior). If it is true, it will consider null values to be equal (so the index can only contain one null value in a column). |
If true, this index represents the primary key of the table ( |
If true, this index supports an exclusion constraint |
If true, the uniqueness check is enforced immediately on insertion (irrelevant if |
If true, the table was last clustered on this index |
If true, the index is currently valid for queries. False means the index is possibly incomplete: it must still be modified by |
If true, queries must not use the index until the |
If true, the index is currently ready for inserts. False means the index must be ignored by |
If false, the index is in process of being dropped, and should be ignored for all purposes (including HOT-safety decisions) |
If true this index has been chosen as “replica identity” using |
This is an array of |
For each column in the index key ( |
For each column in the index key ( |
This is an array of |
Expression trees (in |
Expression tree (in |