BUG #6074: postgresql service script

Поиск
Список
Период
Сортировка
От Tomas Enrique Cardozo Baudry
Тема BUG #6074: postgresql service script
Дата
Msg-id 201106221247.p5MClS5R015725@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #6074: postgresql service script  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      6074
Logged by:          Tomas Enrique Cardozo Baudry
Email address:      tomas.enrique.cardozo.baudry@gmail.com
PostgreSQL version: 8.4.4
Operating system:   Centos 5.6
Description:        postgresql service script
Details:

configuring the posgresql.conf on another port the service doesnt load the
port variable, because in the postgresql service script is a variable PGPORT
and this rewrite the configuration variable

solution (replace the port number with a script variable reader):

PGDATA=/var/lib/pgsql/data
#PGPORT=5432  #### <--- this is the bug
PGPORT=`/bin/cat $PGDATA/postgresql.conf | /bin/grep ’^port' | /bin/sed
's/port = //g'`

tomas.enrique.cardozo.baudry@gmail.com, deshn.co.cc@gmail.com
http://deshn.wikidot.com/howtos:bases-de-datos:postgresql:pgsql-service-scri
pt

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

Предыдущее
От: "Hartmut "Hardy" Raschick"
Дата:
Сообщение: BUG #6073: VPATH build fails in src/backend/replication for src tarball, repl_scanner.c not found
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Where is pg_create_restore_point funciton in 9.1a2 ?