pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Patch to allow setting schema/search_path in the connectionURL
Date: Mon, 22 Sep 2014 22:23:04 -0700
Message-ID: <542103B8.1080208@hogranch.com> (raw)
In-Reply-To: <1411449476155-5820034.post@n5.nabble.com>
References: <1410977074803-5819366.post@n5.nabble.com>
	<CADK3HH+MLmeJNShi7r4opYT14m_QRpc8+T=pewYHeE6gVq_bwg@mail.gmail.com>
	<1411069664209-5819543.post@n5.nabble.com>
	<541B39B1.1010202@hogranch.com>
	<CAJghg4+gacf_hVHjFsie1RaBwoJ4iguqZNh5o0uUpdE2du4C-A@mail.gmail.com>
	<CAPeFFaDpqq3xbzGsR+mquN-knu5kQD6MRMvOzMKb9m10n6kgGA@mail.gmail.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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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



view thread (41+ messages)  latest in thread

Message-ID: <542103B8.1080208@hogranch.com>
Permalink:  ../542103B8.1080208@hogranch.com/
Also on:    postgresql.org/message-id/542103B8.1080208@hogranch.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: pierce@hogranch.com
  Subject: Re: Patch to allow setting schema/search_path in the connectionURL
  In-Reply-To: <542103B8.1080208@hogranch.com>
  References: <1410977074803-5819366.post@n5.nabble.com> <CADK3HH+MLmeJNShi7r4opYT14m_QRpc8+T=pewYHeE6gVq_bwg@mail.gmail.com> <1411069664209-5819543.post@n5.nabble.com> <541B39B1.1010202@hogranch.com> <CAJghg4+gacf_hVHjFsie1RaBwoJ4iguqZNh5o0uUpdE2du4C-A@mail.gmail.com> <CAPeFFaDpqq3xbzGsR+mquN-knu5kQD6MRMvOzMKb9m10n6kgGA@mail.gmail.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> <542103B8.1080208@hogranch.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