Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit35400e1

Browse files
committed
Ignore missing schemas during non-interactive assignment of search_path.
This aligns 9.1's behavior with that of older branches. HEAD is now evenlaxer, ignoring missing schemas all the time, but that seems like too biga change for a released branch. Per complaint from Robert Haas.
1 parent6cc2ed1 commit35400e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/backend/catalog/namespace.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3565,8 +3565,10 @@ check_search_path(char **newval, void **extra, GucSource source)
35653565
/*
35663566
* If we aren't inside a transaction, we cannot do database access so
35673567
* cannot verify the individual names.Must accept the list on faith.
3568+
* Also, if the value is coming from a noninteractive source, accept it
3569+
* anyway.
35683570
*/
3569-
if (IsTransactionState())
3571+
if (IsTransactionState()&&source >=PGC_S_INTERACTIVE)
35703572
{
35713573
/*
35723574
* Verify that all the names are either valid namespace names or

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp