]> granicus.if.org Git - postgresql/commit
Allow a non-superuser database owner to vacuum all tables in his
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jun 2001 21:44:41 +0000 (21:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jun 2001 21:44:41 +0000 (21:44 +0000)
commit1a6bb6d877f60c377635c4e83a1b75ca2f437951
tree842ea6e49fcfda307f33a325356a24c27c5cda33
parentf21e3407e6f8b706dc2a490365e13a8e613523de
Allow a non-superuser database owner to vacuum all tables in his
database, including system catalogs (but not the shared catalogs,
since they don't really belong to his database).  This is per recent
mailing list discussion.  Clean up some other code that also checks
for database ownerness by introducing a test function is_dbadmin().
src/backend/commands/analyze.c
src/backend/commands/comment.c
src/backend/commands/define.c
src/backend/commands/indexcmds.c
src/backend/commands/proclang.c
src/backend/commands/vacuum.c
src/backend/libpq/be-fsstubs.c
src/backend/utils/misc/superuser.c
src/include/catalog/pg_shadow.h
src/include/miscadmin.h