Re: "--variable foo=bar" vs. "\set foo quux" in ~/.psqlrc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "--variable foo=bar" vs. "\set foo quux" in ~/.psqlrc
Дата
Msg-id 11280.1273874110@sss.pgh.pa.us
обсуждение исходный текст
Ответ на "--variable foo=bar" vs. "\set foo quux" in ~/.psqlrc  (Julian Mehnle <julian@mehnle.net>)
Ответы Re: "--variable foo=bar" vs. "\set foo quux" in ~/.psqlrc  (Julian Mehnle <julian@mehnle.net>)
Список pgsql-general
Julian Mehnle <julian@mehnle.net> writes:
> Can anyone confirm that --variable command-line options are evaluated
> before .psqlrc is read and executed?  If so, does anyone know the
> rationale for that?  It seems counterintuitive to me, as it makes
> overriding variables from the command-line impossible.

Seems entirely intuitive to me, as we can certainly not process .psqlrc
before processing the command line options (one of them might be -X for
instance).  Furthermore, changing it would likely break existing
applications.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Persistence problem
Следующее
От: "I. B."
Дата:
Сообщение: Re: Persistence problem