@ -977,12 +977,8 @@ check_default_tablespace(char **newval, void **extra, GucSource source)
! OidIsValid ( get_tablespace_oid ( * newval , true ) ) )
{
/*
* When source = = PGC_S_TEST , we are checking the argument of an
* ALTER DATABASE SET or ALTER USER SET command . pg_dumpall dumps
* all roles before tablespaces , so if we ' re restoring a
* pg_dumpall script the tablespace might not yet exist , but will
* be created later . Because of that , issue a NOTICE if source = =
* PGC_S_TEST , but accept the value anyway .
* When source = = PGC_S_TEST , don ' t throw a hard error for a
* nonexistent tablespace , only a NOTICE . See comments in guc . h .
*/
if ( source = = PGC_S_TEST )
{
@ -1111,14 +1107,9 @@ check_temp_tablespaces(char **newval, void **extra, GucSource source)
}
/*
* In an interactive SET command , we ereport for bad info . When
* source = = PGC_S_TEST , we are checking the argument of an ALTER
* DATABASE SET or ALTER USER SET command . pg_dumpall dumps all
* roles before tablespaces , so if we ' re restoring a pg_dumpall
* script the tablespace might not yet exist , but will be created
* later . Because of that , issue a NOTICE if source = =
* PGC_S_TEST , but accept the value anyway . Otherwise , silently
* ignore any bad list elements .
* In an interactive SET command , we ereport for bad info . When
* source = = PGC_S_TEST , don ' t throw a hard error for a
* nonexistent tablespace , only a NOTICE . See comments in guc . h .
*/
curoid = get_tablespace_oid ( curname , source < = PGC_S_TEST ) ;
if ( curoid = = InvalidOid )