Autostart PostgreSQL in Ubuntu

Поиск
Список
Период
Сортировка
От Johann Maar
Тема Autostart PostgreSQL in Ubuntu
Дата
Msg-id 1190789172.265507.67720@k79g2000hse.googlegroups.com
обсуждение исходный текст
Ответы Re: Autostart PostgreSQL in Ubuntu  (Carlos Moreno <moreno_pg@mochima.com>)
Re: Autostart PostgreSQL in Ubuntu  (Martin Marques <martin@bugs.unl.edu.ar>)
Re: Autostart PostgreSQL in Ubuntu  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Hi folks,

sorry I do not get it right and I have to ask now.

I manually compiled PostgreSQL on my Kubuntu machine to /usr/local/opt/
pgsql and did all this stuff like creating a "postgres" user and I
have a startup script in /etc/init.d.
But if I try to start PostgreSQL by running "sudo /etc/init.d/
postgresql start" it will fail because it tries to write a PID file to
"/var/run/postgresql" which does not exist. If I create this directory
and set the permissions for postgres to write it works (!), but after
the next restart of the machine the directory is already gone. I tried
to change the location of the PID target directory in postgresql.conf,
but then clients like psql still try to find the PID file in /var/run/
postgresql and fail.

What is a good solution for this problem? It also seems that the
postgres user won't ever have permissions to write to /var/run so does
anybody know how to solve this?

With best regards,

Sebastian


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

Предыдущее
От: Alessandra Bilardi
Дата:
Сообщение: Re: could not [extend relation|write block N of temporary file|write to hash-join temporary file]
Следующее
От: Conal
Дата:
Сообщение: Poor performance with ON DELETE CASCADE