Skip site navigation (1) Skip section navigation (2)

Starting Postgres using pg_ctl and options

From: "Jason Cox" <jacox(at)learnframe(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Starting Postgres using pg_ctl and options
Date: 2001-07-03 16:17:49
Message-ID: 000001c103db$b4b3fbe0$ee64000a@jacox (view raw, whole thread or download thread mbox)
Lists: 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:

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

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


Jason Cox

pgsql-novice by date

Next:From: Mark G. FranzDate: 2001-07-03 18:09:55
Subject: Problem with WHERE statement
Previous:From: Tom LaneDate: 2001-07-03 14:48:34
Subject: Re: Trouble with ./configure@cygwin

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group