Starting Postgres using pg_ctl and options - Mailing list pgsql-novice

From Jason Cox
Subject Starting Postgres using pg_ctl and options
Date
Msg-id 000001c103db$b4b3fbe0$ee64000a@jacox
Whole thread Raw
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Trouble with ./configure@cygwin
Next
From: "Mark G. Franz"
Date:
Subject: Problem with WHERE statement