Require ownership permission for CREATE INDEX, per bug report.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Jan 2002 23:21:32 +0000 (23:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Jan 2002 23:21:32 +0000 (23:21 +0000)
commitcb089e726b6f4805319f63e6251118400026723c
tree74393a47580a2fdd0f3ad6d99c409daf2fc93adc
parent29ebef639e8662c486271279705021fe8dde04c2
Require ownership permission for CREATE INDEX, per bug report.
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.
src/backend/commands/command.c
src/backend/commands/indexcmds.c
src/backend/commands/trigger.c
src/backend/parser/analyze.c
src/backend/tcop/utility.c