Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glyC2-0008Ku-Pd for pgsql-jdbc@arkaria.postgresql.org; Tue, 22 Jan 2019 15:42:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1glyC0-00058w-7r for pgsql-jdbc@arkaria.postgresql.org; Tue, 22 Jan 2019 15:42:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glwQw-000714-Hs for pgsql-jdbc@lists.postgresql.org; Tue, 22 Jan 2019 13:49:42 +0000 Received: from mail.netcetera.ch ([194.126.145.7] helo=mail.netcetera.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glwQn-0000GH-07 for pgsql-jdbc@lists.postgresql.org; Tue, 22 Jan 2019 13:49:39 +0000 Received: from xguard.netcetera.com (xguard.netcetera.com [192.168.8.150]) by mail.netcetera.com (8.14.7/8.14.1) with ESMTP id x0MDnVvF060049 for ; Tue, 22 Jan 2019 14:49:31 +0100 Received: from xguard (localhost [127.0.0.1]) by xguard.netcetera.com (Postfix) with ESMTP id C1E3A680298 for ; Tue, 22 Jan 2019 14:49:31 +0100 (CET) Authentication-Results: auth.opendkim.xorlab.com; dkim=none; dkim-atps=neutral Received: from netcetera.com (unknown [172.16.0.139]) by xguard.netcetera.com (Postfix) with ESMTPS id B10966813C4 for ; Tue, 22 Jan 2019 14:49:29 +0100 (CET) Received: from Philippes-MacBook.local ([172.19.1.141]) by netcetera.com (8.14.7/8.14.1) with ESMTP id x0MDnTip001580 for ; Tue, 22 Jan 2019 14:49:29 +0100 Subject: Re: Schema name in Java EE app server datasource configuration? To: pgsql-jdbc@lists.postgresql.org References: <{zm.f{Y5.4YmzbKtqcry.1SHnNg@seznam.cz> From: Philippe Marschall Message-ID: <9f61a21a-7a93-16b4-9f50-2bf81d667117@netcetera.com> Date: Tue, 22 Jan 2019 14:49:29 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <{zm.f{Y5.4YmzbKtqcry.1SHnNg@seznam.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,UNPARSEABLE_RELAY autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sgaNetcetera List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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