postgresql/src/include/commands
Alvaro Herrera b42f09fc80 Fix REASSIGN OWNED for text search objects
Trying to reassign objects owned by a user that had text search
dictionaries or configurations used to fail with:
ERROR:  unexpected classid 3600
or
ERROR:  unexpected classid 3602

Fix by adding cases for those object types in a switch in pg_shdepend.c.

Both REASSIGN OWNED and text search objects go back all the way to 8.1,
so backpatch to all supported branches.  In 9.3 the alter-owner code was
made generic, so the required change in recent branches is pretty
simple; however, for 9.2 and older ones we need some additional
reshuffling to enable specifying objects by OID rather than name.

Text search templates and parsers are not owned objects, so there's no
change required for them.

Per bug #9749 reported by Michal Novotný
2014-07-15 13:24:07 -04:00
..
alter.h Fix ALTER EXTENSION / SET SCHEMA 2012-10-31 10:48:41 -03: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 Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04: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 Fix REASSIGN OWNED for text search objects 2014-07-15 13:24:07 -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:18:40 -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 Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:33 -05:00
tablespace.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
trigger.h Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:33 -05:00
typecmds.h Fix ALTER EXTENSION / SET SCHEMA 2012-10-31 10:48:41 -03:00
user.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
vacuum.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04: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