[pgsql-jp: 24881] Re: PostgreSQL7.2のpostmaster を -S -iオプション付で起動したい

Kazumasa Gotoh kgotoh @ cic-kk.co.jp
2002年 2月 21日 (木) 14:35:24 JST


From: Kouichi Sawada <sawada @ sunmesse.co.jp>
Date: Thu, 21 Feb 2002 14:20:31 +0900

> Warning: Unable to connect to PostgresSQL server: could not connect to
> server: 
> Connection refused Is the server running on host localhost and 
> accepting TCP/IP connections on port 5432? in ../files/connect.inc on
> line 3

postmaster が -i 付きで起動されていないという、この ML の参加者に
とっては昔からくさるほど見せられているやつですね。

>         $ECHO_N "Starting PostgreSQL: "$ECHO_C
>         su - $PGUSER -c "$DAEMON start -i -S -D '$PGDATA' -s -l $PGLOG"
>                    ^^^^^^^
> Starting PostgreSQL: pg_ctl: invalid option: -i
> というエラーが返ってきます。

$DAEMON というのは pg_ctl の事だと思うのですが、man pg_ctl すると

       -o "options"
              Specifies options to be passed directly to postmaster.
              The parameters are usually surrounded by single- or
              double  quotes  to  ensure  that  they  are  passed
              through as a group.

というのがありますよ? これじゃないですか?
pg_ctl に対するオプションと postmaster に対するオプションに同じものが
必ずしも指定できるわけではないでしょう。

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
(株) セントラル情報センター
                             後藤和政    kgotoh @ cic-kk.co.jp



pgsql-jp メーリングリストの案内