Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWIZZ-0000pW-23 for pgsql-jdbc@arkaria.postgresql.org; Tue, 23 Sep 2014 05:23:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWIZX-0008Jd-Bi for pgsql-jdbc@arkaria.postgresql.org; Tue, 23 Sep 2014 05:23:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWIZL-0007xu-Ka for pgsql-jdbc@postgresql.org; Tue, 23 Sep 2014 05:23:19 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWIZH-0000xp-1l for pgsql-jdbc@postgresql.org; Tue, 23 Sep 2014 05:23:16 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s8N5N9Z02903 for ; Mon, 22 Sep 2014 22:23:09 -0700 Message-ID: <542103B8.1080208@hogranch.com> Date: Mon, 22 Sep 2014 22:23:04 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Patch to allow setting schema/search_path in the connectionURL References: <1410977074803-5819366.post@n5.nabble.com> <1411069664209-5819543.post@n5.nabble.com> <541B39B1.1010202@hogranch.com> <1411447985623-5820021.post@n5.nabble.com> <5420FE8B.7070109@hogranch.com> <1411448824623-5820028.post@n5.nabble.com> <54210115.7060203@hogranch.com> <1411449476155-5820034.post@n5.nabble.com> In-Reply-To: <1411449476155-5820034.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 9/22/2014 10:17 PM, stagirus wrote: > Your above response almost gave a hope. But not too long. > All DDLs are going to the public schema. I get the errors as follows: > > Error executing SQL CREATE TABLE public.databas... > Caused by: org.postgresql.util.PSQLException: ERROR: schema "public" does > not exist huh. works in SQL. $ psql psql (9.3.5) Type "help" for help. postgres=# create database test; CREATE DATABASE postgres=# \c test You are now connected to database "test" as user "postgres". test=# create schema myschema; CREATE SCHEMA test=# set search_path to myschema; SET test=# drop schema public; DROP SCHEMA test=# create table stuff (id serial primary key, val text); CREATE TABLE test=# \d List of relations Schema | Name | Type | Owner ----------+--------------+----------+---------- myschema | stuff | table | postgres myschema | stuff_id_seq | sequence | postgres (2 rows) test=# -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc