Re: Connexion to Postgresql using TCP/IP

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Connexion to Postgresql using TCP/IP
Дата
Msg-id 26667.1090604613@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Connexion to Postgresql using TCP/IP  (Secrétariat <ets@rolland-fr.com>)
Список pgsql-general
=?iso-8859-1?Q?Secr=E9tariat?= <ets@rolland-fr.com> writes:
> I edit /etc/rc.d/init.d/postgresql,
> and I replace the values for PGDATA with the path to my database.
> Now I can connect the PC when I use :
> service postgresql start

> It was due to an update from PG 7.3 to PG 7.4 who has modified the init
> script postgresql !

That's exactly why it's considered a bad idea to edit an init script
directly --- since it's a package-supplied file, it'll be overwritten
any time you update the package.

> Is it possible to avaid this problem by using the :
> /etc/sysconfig/pgsql

That's what it's for --- you put the variable definitions in there
instead, and they'll not be touched in a package update.

            regards, tom lane

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: select, columns, and aliases
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgres "invalid page header"