mirror of
https://github.com/postgres/postgres.git
synced 2026-06-04 14:22:22 -04:00
Ignore missing schemas during non-interactive assignment of search_path.
This aligns 9.1's behavior with that of older branches. HEAD is now even laxer, ignoring missing schemas all the time, but that seems like too big a change for a released branch. Per complaint from Robert Haas.
This commit is contained in:
parent
6cc2ed14f1
commit
35400e14b8
1 changed files with 3 additions and 1 deletions
|
|
@ -3565,8 +3565,10 @@ check_search_path(char **newval, void **extra, GucSource source)
|
|||
/*
|
||||
* If we aren't inside a transaction, we cannot do database access so
|
||||
* cannot verify the individual names. Must accept the list on faith.
|
||||
* Also, if the value is coming from a noninteractive source, accept it
|
||||
* anyway.
|
||||
*/
|
||||
if (IsTransactionState())
|
||||
if (IsTransactionState() && source >= PGC_S_INTERACTIVE)
|
||||
{
|
||||
/*
|
||||
* Verify that all the names are either valid namespace names or
|
||||
|
|
|
|||
Loading…
Reference in a new issue