aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/cluster.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-07-14 21:46:30 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-07-14 21:46:30 +0000
commitaa1110624c08298393dfce996f7b21809d98d3fd (patch)
treeb698817242cc44d7ad14cbd68cb0b96e751e4e13 /src/backend/commands/cluster.c
parentbd157821649ae203b9c8ce8daf4ec027a0003351 (diff)
downloadpostgresql-aa1110624c08298393dfce996f7b21809d98d3fd.tar.gz
postgresql-aa1110624c08298393dfce996f7b21809d98d3fd.zip
Adjust permissions checking for ALTER OWNER commands: instead of
requiring superuserness always, allow an owner to reassign ownership to any role he is a member of, if that role would have the right to create a similar object. These three requirements essentially state that the would-be alterer has enough privilege to DROP the existing object and then re-CREATE it as the new role; so we might as well let him do it in one step. The ALTER TABLESPACE case is a bit squirrely, but the whole concept of non-superuser tablespace owners is pretty dubious anyway. Stephen Frost, code review by Tom Lane.
Diffstat (limited to 'src/backend/commands/cluster.c')
0 files changed, 0 insertions, 0 deletions