Starting Postgres using pg_ctl and options

Поиск
Список
Период
Сортировка
От Jason Cox
Тема Starting Postgres using pg_ctl and options
Дата
Msg-id 000001c103db$b4b3fbe0$ee64000a@jacox
обсуждение исходный текст
Список pgsql-novice
Hello all,

I'm running pg 7.1.2 on RH 6.2.  I'm using the start script included in the
distro contrib dir to stop/start postgres.  It uses pg_ctl as follows:

<snip>
PGDATA="/usr/local/pgsql/data"
PGUSER=postgres
DAEMON="$prefix/bin/pg_ctl"
su - $PGUSER -c "$DAEMON start -D /usr/local/pgsql/data -s -l $PGLOG"
</snip>

I realize that pg_ctl takes a '-o' switch to specify options to be passed to
postmaster.  So I tried the following:

su - $PGUSER -c "$DAEMON start -D /usr/local/pgsql/data -s -l $PGLOG -o
\"-i -l\""

When I tried that, it didn't give any errors but it didn't start postmaster.
Without the '-o' stuff, it works just fine.  Does anyone know what I'm doing
wrong?

Thanks,

Jason Cox



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Trouble with ./configure@cygwin
Следующее
От: "Mark G. Franz"
Дата:
Сообщение: Problem with WHERE statement