From: | "Anirban Pal" <anirban(dot)pal(at)newgen(dot)co(dot)in> |
---|---|
To: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Postgres registry access using java |
Date: | 2009-05-28 10:36:59 |
Message-ID: | 3C890DDBA18140B79DCD14DC34699EBC@central.newgen.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-novice |
In the pg_settings table, all reference to folder is with reference to data
directory. Like "config_file" "C:/Program
Files/PostgreSQL/8.3/data/postgresql.conf""data_directory" "C:/Program
Files/PostgreSQL/8.3/data""hba_file" "C:/Program
Files/PostgreSQL/8.3/data/pg_hba.conf""ident_file" "C:/Program
Files/PostgreSQL/8.3/data/pg_ident.conf"No reference to postgres instalation
base directory, i mean where postgres have been installed. We know it is
possible to install data directory as users's convinient location, may be
outside instalation directory. In that case how to fetch postgres
instalation directory? I am looking for lib directory, which I can found out
by traversing directory path, once I find what is base installed directory
for postgresql. Whatever thanks again for your reply. I have opened every
system table, to find base directory location. I didn't find, may be I am
missing something. Can you enrich me with the table name, where home
directory (or installed directory not the data directory) location is
mentioned.RegardsAnirban
Anirban Pal wrote:
> 1st of all thanks for your kind reply. But I can access registry values
> using java.
Ok, then you have some additional native code installed :^)
Does the documentation of this add-on suggest a way to search and
traverse Windoes registry keys?
>> 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.
Asking the database server does not work for you?
Yours,
Laurenz Albe
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2009-05-28 11:09:25 | Re: Postgres registry access using java |
Previous Message | Dave Page | 2009-05-28 10:06:03 | Re: Postgres registry access using java |
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2009-05-28 11:09:25 | Re: Postgres registry access using java |
Previous Message | Dave Page | 2009-05-28 10:06:03 | Re: Postgres registry access using java |