Re: Another thought about search_path semantics

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Another thought about search_path semantics
Дата
Msg-id 22381.1396635652@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Another thought about search_path semantics  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> No, if we're fixing this, then we should have a separate
> "creation_target_schema" GUC.   The fact that the only way to designate
> creation target schema was to put it at the start of the search path has
> *always* been a problem, since 7.3.

Well, if we were doing this in a green field we might do that, but we
don't have a green field.  7.3 was released in 2002.  We need to find
some reasonably upward-compatible reinterpretation of what pg_dump
has been doing since then.

I'm not saying that we couldn't *also* invent a creation_target_schema
GUC, as long as its default setting means "consult search_path for the
schema to use".  What I'm saying is that having such a GUC won't solve
the existing problem for existing dump files.  (And in fact, a non-default
setting of it could completely break existing dump files, so we'd have
to tread carefully.)
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Another thought about search_path semantics
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Another thought about search_path semantics