Re: Configfiles outside initDB dir

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hannes Dorbath <light(at)theendofthetunnel(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Configfiles outside initDB dir
Date: 2005-12-14 15:33:13
Message-ID: 19600.1134574393@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hannes Dorbath <light(at)theendofthetunnel(dot)de> writes:
> I want to have postgresql.conf and pg_hba.conf outside the directory
> created by initDB.

> $PGDATA points to the directory the config files reside in (and nothing
> else) and in postgresql.conf the option "data_directory" is set to the
> directory containing the cluster created by initDB. I can use pg_ctl
> start but pg_ctl stop failes as it expects the pid file in the dir with
> the config files.

I think you want pg_ctl's PGDATA pointing to the data_directory. pg_ctl
does not know anything about the config files, and in particular is not
smart enough to parse them to find the data_directory value.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-12-14 15:42:05 Re: PG 8.1.1 rhel-as-4 rpms missing - Now not initdb issues
Previous Message Devrim GUNDUZ 2005-12-14 15:04:59 Re: PG 8.1.1 rhel-as-4 rpms missing - Now not initdb issues