| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Глава 48. Системные каталоги | След. |
48.34. pg_opfamily
В каталоге pg_opfamily определяются семейства операторов. Каждое семейство операторов представляет собой набор операторов и связанных с ними опорных процедур, реализующих операции, требуемые для определённого метода доступа. Более того, все операторы в семействе являются "совместимыми", в том смысле, который определяется методом доступа. Концепция семейства операторов позволяет использовать в индексах операторы смешанных типов и рассматривать их, используя знание семантики метода доступа.
Семейства операторов углублённо рассматриваются в Разделе 35.14.
Таблица 48-34. Колонки pg_opfamily
| Имя | Тип | Ссылки | Описание |
|---|---|---|---|
| oid | oid | Идентификатор строки (скрытый атрибут; должен выбираться явно) | |
| opfmethod | oid | pg_am.oid | Метод доступа индекса, для которого предназначено семейство операторов |
| opfname | name | Имя семейства операторов | |
| opfnamespace | oid | pg_namespace.oid | Пространство имён семейства операторов |
| opfowner | oid | pg_authid.oid | Владелец семейства операторов |
Основная часть информации, определяющей семейство операторов, находится не в строке pg_opfamily, а в связанных строках в pg_amop, pg_amproc и pg_opclass.
| Пред. | Начало | След. |
| pg_operator | Уровень выше | pg_pltemplate |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Chapter 48. System Catalogs | Next |
48.34. pg_opfamily
The catalog pg_opfamily defines operator families. Each operator family is a collection of operators and associated support routines that implement the semantics specified for a particular index access method. Furthermore, the operators in a family are all "compatible", in a way that is specified by the access method. The operator family concept allows cross-data-type operators to be used with indexes and to be reasoned about using knowledge of access method semantics.
Operator families are described at length in Section 35.14.
Table 48-34. pg_opfamily Columns
| Name | Type | References | Description |
|---|---|---|---|
| oid | oid | Row identifier (hidden attribute; must be explicitly selected) | |
| opfmethod | oid | pg_am.oid | Index access method operator family is for |
| opfname | name | Name of this operator family | |
| opfnamespace | oid | pg_namespace.oid | Namespace of this operator family |
| opfowner | oid | pg_authid.oid | Owner of the operator family |
The majority of the information defining an operator family is not in its pg_opfamily row, but in the associated rows in pg_amop, pg_amproc, and pg_opclass.