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

Re: Postgres registry access using java

From: Joshua Tolley <eggyknap(at)gmail(dot)com>
To: Anirban Pal <anirban(dot)pal(at)newgen(dot)co(dot)in>
Cc: pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres registry access using java
Date: 2009-05-27 15:29:51
Message-ID: 20090527152951.GM22115@eddie (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-novice
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

In response to


pgsql-novice by date

Next:From: Tom LaneDate: 2009-05-27 15:34:03
Subject: Re: Query Optimization
Previous:From: Tom LaneDate: 2009-05-27 15:09:42
Subject: Re: Transactions

pgsql-general by date

Next:From: Alexander SchöckeDate: 2009-05-27 16:09:44
Subject: Re: Bloated Table
Previous:From: Scott BaileyDate: 2009-05-27 15:23:36
Subject: Re: composite type and domain

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