]> granicus.if.org Git - postgresql/commit
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)
commitdc6b4deb9717a9f03b2f93baca9f93f13786e26b
tree586c04579f3337cc8fdbbc342eefbb0bdf21e607
parentd02f0aaa3b7313cabd9e64deb34ab630832730ce
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