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

How do I determine my data dir for a created database for pg_ctl?

From: "Matthew Pettis" <matthew(dot)pettis(at)gmail(dot)com>
To: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: How do I determine my data dir for a created database for pg_ctl?
Date: 2008-08-20 05:33:02
Message-ID: 82ba77b80808192233u1d967735r715783d527dbfdef@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
Hi,

I have a database I can psql into... How can I determine what its
absolute path is so I can use pg_ctl on it to restart it?  Because
when I use pg_ctl, it tells me I have to provide it in the -D flag as
an argument.

Thanks,
matt

-- 
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas

Responses

pgsql-novice by date

Next:From: Matthew PettisDate: 2008-08-20 05:45:32
Subject: Fwd: Restarting with pg_ctl, users, and passwords.
Previous:From: Matthew PettisDate: 2008-08-20 05:28:38
Subject: Restarting with pg_ctl, users, and passwords.

pgsql-general by date

Next:From: Matthew PettisDate: 2008-08-20 05:45:32
Subject: Fwd: Restarting with pg_ctl, users, and passwords.
Previous:From: Matthew PettisDate: 2008-08-20 05:28:38
Subject: Restarting with pg_ctl, users, and passwords.

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