From: | Markus Schaber <schabi(at)logix-tt(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: pg_service.conf ? |
Date: | 2006-03-17 16:26:27 |
Message-ID: | 441AE333.2010003@logix-tt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hi, Oliver,
Oliver Jowett wrote:
>> Note that libpq takes the perspective that pg_service.conf should live
>> in the ../etc directory for the PostgreSQL build. Thus, if psql is
>> living as /opt/dbs/pgsql825/bin/psql, then this would be in
>> /opt/dbs/pgsql825/etc/pg_service.conf.
>
> The big thing here is "how do we find the config file?". The JDBC driver
> has no concept of an "installation" .. it's just classes that the JVM
> manages to load somehow.
I could imagine a specific search order in a defined subset of:
- ClassLoader.GetResource('pg_service.conf')
- System.getEnv("PG_JDBC_SERVICE_CONF")
- System.getEnv("HOME") + File.separator + ".pgpass"
- System.getEnv("PGSYSCONFDIR") + File.separator + "pg_service.conf"
- System.getProperty('pg_service.conf') // contains the path of the file
- new InitialContext().lookup('pg_service.conf')
- A driver URL parameter specifying the location of the file
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
From | Date | Subject | |
---|---|---|---|
Next Message | Jan de Visser | 2006-03-17 16:52:23 | Re: pg_service.conf ? |
Previous Message | Tomi NA | 2006-03-15 15:25:51 | Re: meta-data problem |