JDBC - setting PG variables in URL

From: "Jan Bilek" <bilekj(at)gmail(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: JDBC - setting PG variables in URL
Date: 2007-05-07 20:36:26
Message-ID: 006101c790e7$63800d50$0100a8c0@ook
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
Is it possible to set any of postgre variables in JDBC conection URL?

Example:
"jdbc:postgresql://localhost:/dbname?pgvar1=value2&pgvar2=value2"

Is this or simular construction plausible? We tried it, but it didn't work.
OR - question could be put this way: How to set internal postgre variables
(like search_path etc.) from Java2 enviroment using JDBC?

Thanks for any hints.

Regards,
Jan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2007-05-07 20:41:16 Re: JDBC - setting PG variables in URL
Previous Message Richard Broersma Jr 2007-05-07 20:21:16 Re: Date Math