Re: Postgres registry access using java - Mailing list pgsql-general

From Joshua Tolley
Subject Re: Postgres registry access using java
Date
Msg-id 20090527152951.GM22115@eddie
Whole thread Raw
In response to Postgres registry access using java  ("Anirban Pal" <anirban.pal@newgen.co.in>)
List pgsql-general
On Wed, May 27, 2009 at 01:21:40PM +0530, Anirban Pal wrote:
>    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.

Some PL/Java or PL/J function might do what you want, provided Java gives you a
means to access the registry. But what's wrong with "SHOW data_directory;" or
"SELECT setting FROM pg_settings WHERE name = 'data_directory';"?

- Josh / eggyknap

Attachment

pgsql-general by date:

Previous
From: Scott Bailey
Date:
Subject: Re: composite type and domain
Next
From: Alexander Schöcke
Date:
Subject: Re: Bloated Table