• Tom Lane's avatar
    Document that CREATE OPERATOR CLASS amounts to granting public execute · 7d6d02b6
    Tom Lane authored
    permissions on the functions and operators contained in the opclass.
    Since we already require superuser privilege to create an operator class,
    there's no expansion-of-privilege hazard here, but if someone were to get
    the idea of building an opclass containing functions that need security
    restrictions, we'd better warn them off.  Also, change the permission
    checks from have-execute-privilege to have-ownership, and then comment
    them all out since they're dead code anyway under the superuser restriction.
    7d6d02b6
opclasscmds.c 28.9 KB