Re: Patch for Statement.getGeneratedKeys() - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Patch for Statement.getGeneratedKeys()
Date
Msg-id Pine.BSO.4.64.0801150222500.11728@leary.csoft.net
Whole thread Raw
In response to Re: Patch for Statement.getGeneratedKeys()  (Ken Johanson <pg-user@kensystem.com>)
Responses Re: Patch for Statement.getGeneratedKeys()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-jdbc

On Tue, 15 Jan 2008, Ken Johanson wrote:

> Ken Johanson wrote:
>> Do you know how we can get the current schema name? I presumed it might
>> appear in SHOW ALL, but not so.
>>
>
> Answer: select current_schema()  :-)
>

False, as I explained earlier there is no current schema.  Have
a read of this:

http://www.postgresql.org/docs/8.2/static/ddl-schemas.html#DDL-SCHEMAS-PATH

You need to look through the schemas in the search_path in order and see
which one a table with the given name appears in first.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Ken Johanson
Date:
Subject: Re: Patch for Statement.getGeneratedKeys()
Next
From: "Hadraba Petr"
Date:
Subject: Re: Batch Update problem