Re: .bash_profile replaced on software updates

Поиск
Список
Период
Сортировка
От Devrim Gündüz
Тема Re: .bash_profile replaced on software updates
Дата
Msg-id 6F129D9D-6CD3-410F-96E0-E8C3AC236791@gunduz.org
обсуждение исходный текст
Ответ на .bash_profile replaced on software updates  (John DeSoi <desoi@pgedit.com>)
Список pgsql-general
Hi John,

Can you please create a ticket at redmine.postgresql.org , under pgrpms project?

I will look at this soon.

Thanks!

Regards, Devrim

On May 21, 2016 5:09:13 PM GMT+03:00, John DeSoi <desoi@pgedit.com> wrote:
I'm using CentOS and updating Postgres with yum. Whenever Postgres is updated (even minor updates) the .bash_profile is replaced with the lines below. I was happy to see the idea of the .psql_profile added fairly recently, but I don't understand why the last line is commented out. I still have to remember to uncomment the last line in this file every time I update Postgres which seems to defeat the purpose.

The reason I need .pgsql_profile is that lots of useful Postgres executables (e.g. pg_archivecleanup) are not in the postgres path. Does everyone just use the full path name and change this in the configuration file for major updates?

[ -f /etc/profile ] && source /etc/profile
PGDATA=/var/lib/pgsql/9.5/data
export PGDATA
# If you want to customize your settings,
# Use the file below. This is not overridden
# by the RPMS.
#[ -f /var/lib/pgsql/.pgsql_profile ] && source /var/lib/pgsql/.pgsql_profile


John DeSoi, Ph.D.



--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: .bash_profile replaced on software updates
Следующее
От: Tom Lane
Дата:
Сообщение: Re: postgresql-9.5.3 compilation on Solaris SPARC