postgresql/src
Heikki Linnakangas a578257040 Accept a non-existent value in "ALTER USER/DATABASE SET ..." command.
When default_text_search_config, default_tablespace, or temp_tablespaces
setting is set per-user or per-database, with an "ALTER USER/DATABASE SET
..." statement, don't throw an error if the text search configuration or
tablespace does not exist. In case of text search configuration, even if
it doesn't exist in the current database, it might exist in another
database, where the setting is intended to have its effect. This behavior
is now the same as search_path's.

Tablespaces are cluster-wide, so the same argument doesn't hold for
tablespaces, but there's a problem with pg_dumpall: it dumps "ALTER USER
SET ..." statements before the "CREATE TABLESPACE" statements. Arguably
that's pg_dumpall's fault - it should dump the statements in such an order
that the tablespace is created first and then the "ALTER USER SET
default_tablespace ..." statements after that - but it seems better to be
consistent with search_path and default_text_search_config anyway. Besides,
you could still create a dump that throws an error, by creating the
tablespace, running "ALTER USER SET default_tablespace", then dropping the
tablespace and running pg_dumpall on that.

Backpatch to all supported versions.
2012-01-30 11:13:36 +02:00
..
backend Accept a non-existent value in "ALTER USER/DATABASE SET ..." command. 2012-01-30 11:13:36 +02:00
bin pg_dump: Move connection-setup code to a separate function. 2012-01-27 10:59:27 -05:00
include Assorted comment fixes, mostly just typos, but some obsolete statements. 2012-01-29 19:23:56 -05:00
interfaces Ecpglib stores variables that are used in DECLARE statements in a global list. 2012-01-05 14:08:45 +01:00
makefiles Add pg_upgrade test suite 2011-11-27 22:42:32 +02:00
pl Improve efficiency of recent changes to plperl's sv2cstr(). 2012-01-15 16:15:04 -05:00
port Revert binary change in copyright year adjustment. 2012-01-01 19:40:13 -05:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Fix pushing of index-expression qualifications through UNION ALL. 2012-01-29 16:31:23 -05:00
timezone Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
tools Fix pathname in pgindent README. 2012-01-09 13:31:58 -05:00
tutorial Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:12 -04:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:23 -04:00
nls-global.mk Sort compendium lists for msgmerge 2011-12-27 20:22:51 +02:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00