postgresql/src/include/commands
Alvaro Herrera 0c7b9dc7d0 Have REASSIGN OWNED work on extensions, too
Per bug #6593, REASSIGN OWNED fails when the affected role has created
an extension.  Even though the user related to the extension is not
nominally the owner, its OID appears on pg_shdepend and thus causes
problems when the user is to be dropped.

This commit adds code to change the "ownership" of the extension itself,
not of the contained objects.  This is fine because it's currently only
called from REASSIGN OWNED, which would also modify the ownership of the
contained objects.  However, this is not sufficient for a working ALTER
OWNER implementation extension.

Back-patch to 9.1, where extensions were introduced.

Bug #6593 reported by Emiliano Leporati.
2012-07-03 15:09:59 -04:00
..
alter.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
async.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
cluster.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
collationcmds.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
comment.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
conversioncmds.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
copy.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
createas.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
dbcommands.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
defrem.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
discard.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
explain.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
extension.h Have REASSIGN OWNED work on extensions, too 2012-07-03 15:09:59 -04:00
lockcmds.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
portalcmds.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
prepare.h Restructure SELECT INTO's parsetree representation into CreateTableAsStmt. 2012-03-19 21:38:12 -04:00
proclang.h Further consolidation of DROP statement handling. 2011-11-17 21:32:34 -05:00
schemacmds.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
seclabel.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
sequence.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
tablecmds.h Prevent CREATE TABLE LIKE/INHERITS from (mis) copying whole-row Vars. 2012-06-30 16:45:14 -04:00
tablespace.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
trigger.h Improve tests for whether we can skip queueing RI enforcement triggers. 2012-06-19 20:07:33 -04:00
typecmds.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
user.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
vacuum.h Replace int2/int4 in C code with int16/int32 2012-06-25 01:51:46 +03:00
variable.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
view.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00