Re: Patch to psql to allow SEARCH_PATH to be set from env

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Patch to psql to allow SEARCH_PATH to be set from env
Дата
Msg-id 871xp2wuh8.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответ на Re: Patch to psql to allow SEARCH_PATH to be set from env  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane <tgl@sss.pgh.pa.us> writes:
> Another possibility is to issue the SET from a ~/.psqlrc file (I think
> that's what it's called, check the man page).

Yet another possibility is to use the existing PGOPTIONS env var:

%PGOPTIONS='-c search_path=foo,public' psql template1
[ ... ]
template1=# show search_path;
 search_path
-------------
 foo,public
(1 row)

> (Seen in this light, PGCLIENTENCODING is a wart, but I suppose we
> have to keep it for backwards compatibility.)

I seems to me that PGGEQO, PGTZ, and PGDATESTYLE fall into the same
category.

-Neil


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Patch to psql to allow SEARCH_PATH to be set from env
Следующее
От: Scott Goodwin
Дата:
Сообщение: Re: Patch to psql to allow SEARCH_PATH to be set from env