51.5. pg_amproc
#
В каталоге pg_amproc
хранится информация об опорных функциях, связанных с семействами операторов методов доступа. Строки в нём описывают все опорные функции, принадлежащие семейству операторов.
Таблица 51.5. Столбцы pg_amproc
Тип столбца Описание |
---|
Идентификатор строки |
Семейство операторов, к которому относится эта запись |
Тип данных левого операнда связанного оператора |
Тип данных правого операнда связанного оператора |
Номер опорной функции |
OID функции |
Обычно принято, что amproclefttype
и amprocrighttype
определяют типы левого и правого операнда оператора, который поддерживает конкретная опорная функция. Для некоторых методов доступа они соответствуют типам входных данных самой опорной функции, для других — нет. Есть понятие «стандартных» опорных функций для индекса; это такие функции, у которых amproclefttype
и amprocrighttype
равняются opcintype
класса оператора индекса.
51.5. pg_amproc
#
The catalog pg_amproc
stores information about support functions associated with access method operator families. There is one row for each support function belonging to an operator family.
Table 51.5. pg_amproc
Columns
Column Type Description |
---|
Row identifier |
The operator family this entry is for |
Left-hand input data type of associated operator |
Right-hand input data type of associated operator |
Support function number |
OID of the function |
The usual interpretation of the amproclefttype
and amprocrighttype
fields is that they identify the left and right input types of the operator(s) that a particular support function supports. For some access methods these match the input data type(s) of the support function itself, for others not. There is a notion of “default” support functions for an index, which are those with amproclefttype
and amprocrighttype
both equal to the index operator class's opcintype
.