Re: Postgres registry access using java

Поиск
Список
Период
Сортировка
От Anirban Pal
Тема Re: Postgres registry access using java
Дата
Msg-id 3C890DDBA18140B79DCD14DC34699EBC@central.newgen.local
обсуждение исходный текст
Ответ на Postgres registry access using java  ("Anirban Pal" <anirban.pal@newgen.co.in>)
Список pgsql-general
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.
Ifyou 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.
NewgenSoftware Technologies Ltd (NSTL)  accepts no responsibilities for loss or damage arising from the use of the
informationtransmitted by this email including damages from virus and further acknowledges that no binding nature of
themessage shall be implied or assumed unless the sender does so expressly with due authority of NSTL.  


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Multidimensional array definition in composite type appears parsed as string -- SOLVED
Следующее
От: inf200468@ucf.edu.cu
Дата:
Сообщение: configurar el hba