Re: Postgres registry access using java

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres registry access using java
Date: 2009-05-28 12:03:03
Message-ID: gvluhn$23o$2@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On 2009-05-27, Anirban Pal <anirban(dot)pal(at)newgen(dot)co(dot)in> wrote:
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0041_01C9DECE.11E417C0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hi all,
>
> Can any body tell me how to fetch directory path for lib or data =
> directory for postgres installation in windows using registry. Solution =
> using Java language will be highly solicited.=20

why do you want to know that?

here's one way using SQL:
select setting from pgcatalog.pg_settings where name='data_directory'

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-05-28 12:41:26 Re: \dt+ on 8.4
Previous Message Grzegorz Jaśkiewicz 2009-05-28 11:53:12 Re: composite type and domain

Browse pgsql-novice by date

  From Date Subject
Next Message komei mitsui 2009-05-29 17:47:59 how to monitor wal archiving?
Previous Message Jasen Betts 2009-05-28 11:52:55 Re: PG commands not working?