pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carol Walter <walterc@indiana.edu>
Cc: pgsql-admin@postgresql.org, Dave Cole <daedcole@indiana.edu>
Subject: Re: Default data directory
Date: Fri, 05 Sep 2008 15:11:41 -0400
Message-ID: <29791.1220641901@sss.pgh.pa.us> (raw)
In-Reply-To: <EE388B40-72C2-4568-AB97-9E37280BC197@indiana.edu>
References: <EE388B40-72C2-4568-AB97-9E37280BC197@indiana.edu>

Carol Walter <walterc@indiana.edu> writes:
> I can't figure out how the Postgres that's running on the production  
> web server knows where to look for its data.

Generally the location of the data directory is determined by a -D
switch on the postmaster command line, or by setting the PGDATA
environment variable in the script that launches the postmaster.

Setting it in the configuration file would be circular logic,
except in the uncommon sort of configuration where the config file
doesn't live in the data directory (in which case the -D switch
only indicates where the config files are).

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <29791.1220641901@sss.pgh.pa.us>
Permalink:  ../29791.1220641901@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29791.1220641901@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, walterc@indiana.edu, daedcole@indiana.edu
  Subject: Re: Default data directory
  In-Reply-To: <29791.1220641901@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox