• Tom Lane's avatar
    Require ownership permission for CREATE INDEX, per bug report. · dc6b4deb
    Tom Lane authored
    Disallow CREATE INDEX on system catalogs, non-tables (views, sequences, etc).
    Disallow CREATE/DROP TRIGGER on system catalogs, non-tables.
    Disallow ALTER TABLE ADD/DROP CONSTRAINT on system catalogs.
    Disallow FOREIGN KEY reference to non-table.
    None of these things can actually work in the present system structure,
    but the code was letting them pass without complaint.
    dc6b4deb
indexcmds.c 19.8 KB