Re: alternate psql file locations

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: alternate psql file locations
Дата
Msg-id 4F00CA9E.9000307@dunslane.net
обсуждение исходный текст
Ответ на Re: alternate psql file locations  (Aidan Van Dyk <aidan@highrise.ca>)
Ответы Re: alternate psql file locations  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers

On 12/31/2011 04:26 PM, Aidan Van Dyk wrote:
> On Sat, Dec 31, 2011 at 3:17 PM, Alvaro Herrera
> <alvherre@commandprompt.com>  wrote:
>> Excerpts from Andrew Dunstan's message of sáb dic 31 12:52:02 -0300 2011:
>>> It's not a big thing, but I just found myself in a shared environment
>>> wanting to be able to set alternative locations for the psql startup
>>> file and history. I know there's the HISTFILE variable, but I can't
>>> easily set that automatically unless I can at least have my own .psqlrc.
>>> ISTM it should be a fairly simple thing to provide these, via
>>> environment variables. Is there general interest in such a thing?
>> I wanted such a thing mere two weeks ago ...
> Generally when I've wanted these things, I just make a new "$HOME" in
> my shared user home dir:
>
> export HOME=$HOME/aidan
>
> It's worked for things I've wanted, I haven't tried it for psql stuff....
>


Yeah, but it's a bit hacky. I might well not want $HOME reset. Here's a
small patch that does what I think would suit me and Alvaro.

cheers

andrew

Вложения

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: backup_label during crash recovery: do we know how to solve it?
Следующее
От: Daniel Farina
Дата:
Сообщение: Re: backup_label during crash recovery: do we know how to solve it?