ALTER TABLE OWNER must change the ownership of the table's rowtype too.
This was not especially critical before, but it is now that we track
ownership dependencies --- the dependency for the rowtype *must* shift
to the new owner. Spotted by Bernd Helmle.
Also fix a problem introduced by recent change to allow non-superusers
to do ALTER OWNER in some cases: if the table had a toast table, ALTER
OWNER failed *even for superusers*, because the test being applied would
conclude that the new would-be owner had no create rights on pg_toast.
A side-effect of the fix is to disallow changing the ownership of indexes
or toast tables separately from their parent table, which seems a good
idea on the whole.
alter_table.sgml (r1.78 -> r1.79)
tablecmds.c (r1.165 -> r1.166)
typecmds.c (r1.77 -> r1.78)
typecmds.h (r1.12 -> r1.13)
dependency.out (r1.1 -> r1.2)
dependency.sql (r1.1 -> r1.2)
pgsql-committers by date
|Next:||From: James William Pye||Date: 2005-08-04 02:28:39|
|Subject: python - lo: Add server options, process, and SSL requirement options.|
|Previous:||From: James William Pye||Date: 2005-08-03 23:20:40|
|Subject: python - ex: Add code and prime unittests.|