pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philippe Marschall <philippe.marschall@netcetera.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: Re: Schema name in Java EE app server datasource configuration?
Date: Tue, 22 Jan 2019 14:49:29 +0100
Message-ID: <9f61a21a-7a93-16b4-9f50-2bf81d667117@netcetera.com> (raw)
In-Reply-To: <{zm.f{Y5.4YmzbKtqcry.1SHnNg@seznam.cz>
References: <{zm.f{Y5.4YmzbKtqcry.1SHnNg@seznam.cz>

Hello Petr

Have you tried adding currentSchema=SCHEMA_NAME to the connection URL 
[1]? either prefixed by ? or & depending on whether it is the first 
query parameter.

  [1] https://jdbc.postgresql.org/documentation/head/connect.html

Cheers
Philippe

On 22.01.19 14:08, hostalp@post.cz wrote:
> Hello,
> I'm trying to configure a PostgreSQL data source at WebSphere 
> Application Server.
> I defined a custom JDBC provider type and data source based on the 
> following description: 
> https://jdbc.postgresql.org/documentation/head/ds-cpds.html
> 
> Now I need to specify a schema name in addition to all of that, but that 
> isn't documented there. I know there's a connection property 
> currentSchema, however is it possible to configure it for the JEE data 
> source? I may try some trial & error attempts to configure it somehow, 
> but perhaps you know how to do it properly right from the start?
> 
> And in such case it would be useful to add it to the documentation.
> 
> Best regards.
> Petr





view thread (4+ messages)  latest in thread

Message-ID: <9f61a21a-7a93-16b4-9f50-2bf81d667117@netcetera.com>
Permalink:  ../9f61a21a-7a93-16b4-9f50-2bf81d667117@netcetera.com/
Also on:    postgresql.org/message-id/9f61a21a-7a93-16b4-9f50-2bf81d667117@netcetera.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: philippe.marschall@netcetera.com
  Subject: Re: Schema name in Java EE app server datasource configuration?
  In-Reply-To: <9f61a21a-7a93-16b4-9f50-2bf81d667117@netcetera.com>
  References: <{zm.f{Y5.4YmzbKtqcry.1SHnNg@seznam.cz> <9f61a21a-7a93-16b4-9f50-2bf81d667117@netcetera.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox