{
    "content": [
        {
            "type": "text",
            "text": "# CREATE_OPERATOR_FAMILY (man)\n\n## NAME\n\nCREATEOPERATORFAMILY - define a new operator family\n\n## SYNOPSIS\n\nCREATE OPERATOR FAMILY name USING indexmethod\n\n## DESCRIPTION\n\nCREATE OPERATOR FAMILY creates a new operator family. An operator family defines a collection\nof related operator classes, and perhaps some additional operators and support functions that\nare compatible with these operator classes but not essential for the functioning of any\nindividual index. (Operators and functions that are essential to indexes should be grouped\nwithin the relevant operator class, rather than being “loose” in the operator family.\nTypically, single-data-type operators are bound to operator classes, while cross-data-type\noperators can be loose in an operator family containing operator classes for both data\ntypes.)\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PARAMETERS**\n- **COMPATIBILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "CREATE_OPERATOR_FAMILY",
        "section": "",
        "mode": "man",
        "summary": "CREATEOPERATORFAMILY - define a new operator family",
        "synopsis": "CREATE OPERATOR FAMILY name USING indexmethod",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "ALTEROPERATORFAMILY",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ALTEROPERATORFAMILY/7/json"
            },
            {
                "name": "DROPOPERATORFAMILY",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/DROPOPERATORFAMILY/7/json"
            },
            {
                "name": "CREATEOPERATORCLASS",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATEOPERATORCLASS/7/json"
            },
            {
                "name": "ALTEROPERATORCLASS",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ALTEROPERATORCLASS/7/json"
            },
            {
                "name": "DROPOPERATORCLASS",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/DROPOPERATORCLASS/7/json"
            },
            {
                "name": "FAMILY",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/FAMILY/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 23,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "CREATEOPERATORFAMILY - define a new operator family\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "CREATE OPERATOR FAMILY name USING indexmethod\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "CREATE OPERATOR FAMILY creates a new operator family. An operator family defines a collection\nof related operator classes, and perhaps some additional operators and support functions that\nare compatible with these operator classes but not essential for the functioning of any\nindividual index. (Operators and functions that are essential to indexes should be grouped\nwithin the relevant operator class, rather than being “loose” in the operator family.\nTypically, single-data-type operators are bound to operator classes, while cross-data-type\noperators can be loose in an operator family containing operator classes for both data\ntypes.)\n\nThe new operator family is initially empty. It should be populated by issuing subsequent\nCREATE OPERATOR CLASS commands to add contained operator classes, and optionally ALTER\nOPERATOR FAMILY commands to add “loose” operators and their corresponding support functions.\n\nIf a schema name is given then the operator family is created in the specified schema.\nOtherwise it is created in the current schema. Two operator families in the same schema can\nhave the same name only if they are for different index methods.\n\nThe user who defines an operator family becomes its owner. Presently, the creating user must\nbe a superuser. (This restriction is made because an erroneous operator family definition\ncould confuse or even crash the server.)\n\nRefer to Section 38.16 for further information.\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "name\nThe name of the operator family to be created. The name can be schema-qualified.\n\nindexmethod\nThe name of the index method this operator family is for.\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "CREATE OPERATOR FAMILY is a PostgreSQL extension. There is no CREATE OPERATOR FAMILY\nstatement in the SQL standard.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "ALTER OPERATOR FAMILY (ALTEROPERATORFAMILY(7)), DROP OPERATOR FAMILY\n(DROPOPERATORFAMILY(7)), CREATE OPERATOR CLASS (CREATEOPERATORCLASS(7)), ALTER OPERATOR\nCLASS (ALTEROPERATORCLASS(7)), DROP OPERATOR CLASS (DROPOPERATORCLASS(7))\n\n\n\nPostgreSQL 14.23                                2026                       CREATE OPERATOR FAMILY(7)",
                "subsections": []
            }
        }
    }
}