Re: Explicit psqlrc

Поиск
Список
Период
Сортировка
От David Christensen
Тема Re: Explicit psqlrc
Дата
Msg-id F56030FD-F193-4A29-95F1-E39DF5379952@endpoint.com
обсуждение исходный текст
Ответ на Re: Explicit psqlrc  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
On Jul 20, 2010, at 2:18 PM, Alvaro Herrera wrote:

> Excerpts from Robert Haas's message of mar jul 20 11:48:29 -0400 2010:
>
>>> That seems sub-optimal; I can see people wanting to use this feature to do something like:
>>>
>>> psql -c 'set work_mem = blah' -f script.sql
>>>
>>> and then being surprised when it works differently than just `psql -f script.sql`.
>>
>> I agree... but then they might also be surprised if psql -c
>> 'something' works differently from psql -c 'something' -f /dev/null
>
> I think we should just make sure -X works, and have .psqlrc be read when
> it's not specified regardless of -f and -c switches.
>
> Otherwise it's just plain confusing.


+1.

Regards,

David
--
David Christensen
End Point Corporation
david@endpoint.com






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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: standard_conforming_strings
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: managing git disk space usage