1CREATE OPERATOR FAMILY(7)PostgreSQL 15.4 DocumentationCREATE OPERATOR FAMILY(7)
2
3
4

NAME

6       CREATE_OPERATOR_FAMILY - define a new operator family
7

SYNOPSIS

9       CREATE OPERATOR FAMILY name USING index_method
10

DESCRIPTION

12       CREATE OPERATOR FAMILY creates a new operator family. An operator
13       family defines a collection of related operator classes, and perhaps
14       some additional operators and support functions that are compatible
15       with these operator classes but not essential for the functioning of
16       any individual index. (Operators and functions that are essential to
17       indexes should be grouped within the relevant operator class, rather
18       than being “loose” in the operator family. Typically, single-data-type
19       operators are bound to operator classes, while cross-data-type
20       operators can be loose in an operator family containing operator
21       classes for both data types.)
22
23       The new operator family is initially empty. It should be populated by
24       issuing subsequent CREATE OPERATOR CLASS commands to add contained
25       operator classes, and optionally ALTER OPERATOR FAMILY commands to add
26       “loose” operators and their corresponding support functions.
27
28       If a schema name is given then the operator family is created in the
29       specified schema. Otherwise it is created in the current schema. Two
30       operator families in the same schema can have the same name only if
31       they are for different index methods.
32
33       The user who defines an operator family becomes its owner. Presently,
34       the creating user must be a superuser. (This restriction is made
35       because an erroneous operator family definition could confuse or even
36       crash the server.)
37
38       Refer to Section 38.16 for further information.
39

PARAMETERS

41       name
42           The name of the operator family to be created. The name can be
43           schema-qualified.
44
45       index_method
46           The name of the index method this operator family is for.
47

COMPATIBILITY

49       CREATE OPERATOR FAMILY is a PostgreSQL extension. There is no CREATE
50       OPERATOR FAMILY statement in the SQL standard.
51

SEE ALSO

53       ALTER OPERATOR FAMILY (ALTER_OPERATOR_FAMILY(7)), DROP OPERATOR FAMILY
54       (DROP_OPERATOR_FAMILY(7)), CREATE OPERATOR CLASS
55       (CREATE_OPERATOR_CLASS(7)), ALTER OPERATOR CLASS
56       (ALTER_OPERATOR_CLASS(7)), DROP OPERATOR CLASS (DROP_OPERATOR_CLASS(7))
57
58
59
60PostgreSQL 15.4                      2023            CREATE OPERATOR FAMILY(7)
Impressum