From 5e45211a64149b3c659b90ff2de6fa982a5a93ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:17:33 +0200 Subject: Adding upstream version 15.5. Signed-off-by: Daniel Baumann --- doc/src/sgml/html/catalog-pg-amop.html | 104 +++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 doc/src/sgml/html/catalog-pg-amop.html (limited to 'doc/src/sgml/html/catalog-pg-amop.html') diff --git a/doc/src/sgml/html/catalog-pg-amop.html b/doc/src/sgml/html/catalog-pg-amop.html new file mode 100644 index 0000000..c43164e --- /dev/null +++ b/doc/src/sgml/html/catalog-pg-amop.html @@ -0,0 +1,104 @@ + +53.4. pg_amop

53.4. pg_amop

+ The catalog pg_amop stores information about + operators associated with access method operator families. There is one + row for each operator that is a member of an operator family. A family + member can be either a search operator or an + ordering operator. An operator + can appear in more than one family, but cannot appear in more than one + search position nor more than one ordering position within a family. + (It is allowed, though unlikely, for an operator to be used for both + search and ordering purposes.) +

Table 53.4. pg_amop Columns

+ Column Type +

+

+ Description +

+ oid oid +

+

+ Row identifier +

+ amopfamily oid + (references pg_opfamily.oid) +

+

+ The operator family this entry is for +

+ amoplefttype oid + (references pg_type.oid) +

+

+ Left-hand input data type of operator +

+ amoprighttype oid + (references pg_type.oid) +

+

+ Right-hand input data type of operator +

+ amopstrategy int2 +

+

+ Operator strategy number +

+ amoppurpose char +

+

+ Operator purpose, either s for search or + o for ordering +

+ amopopr oid + (references pg_operator.oid) +

+

+ OID of the operator +

+ amopmethod oid + (references pg_am.oid) +

+

+ Index access method operator family is for +

+ amopsortfamily oid + (references pg_opfamily.oid) +

+

+ The B-tree operator family this entry sorts according to, if an + ordering operator; zero if a search operator +


+ A search operator entry indicates that an index of this operator + family can be searched to find all rows satisfying + WHERE + indexed_column + operator + constant. + Obviously, such an operator must return boolean, and its left-hand input + type must match the index's column data type. +

+ An ordering operator entry indicates that an index of this + operator family can be scanned to return rows in the order represented by + ORDER BY + indexed_column + operator + constant. + Such an operator could return any sortable data type, though again + its left-hand input type must match the index's column data type. + The exact semantics of the ORDER BY are specified by the + amopsortfamily column, which must reference + a B-tree operator family for the operator's result type. +

Note

+ At present, it's assumed that the sort order for an ordering operator + is the default for the referenced operator family, i.e., ASC NULLS + LAST. This might someday be relaxed by adding additional columns + to specify sort options explicitly. +

+ An entry's amopmethod must match the + opfmethod of its containing operator family (including + amopmethod here is an intentional denormalization of the + catalog structure for performance reasons). Also, + amoplefttype and amoprighttype must match + the oprleft and oprright fields of the + referenced pg_operator entry. +

\ No newline at end of file -- cgit v1.2.3