From: Kris Jurka <books@ejurka.com>
To: Jason Tesser <jasontesser@gmail.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: Found a Bug in latest Driver (I THINK) and pg 8.4
Date: Tue, 1 Jun 2010 16:34:42 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1006011626240.16246@leary.csoft.net> (raw)
In-Reply-To: <AANLkTinaVIn6ga3WtlmMkn7tYqZzDeRhJZwrjsVTVPr4@mail.gmail.com>
References: <AANLkTilWwc0VmfY7YP15OFt4d8VbcZEYmuXxM-Di58xN@mail.gmail.com>
<4C0508040200002500031C71@gw.wicourts.gov>
<AANLkTinaVIn6ga3WtlmMkn7tYqZzDeRhJZwrjsVTVPr4@mail.gmail.com>
On Tue, 1 Jun 2010, Jason Tesser wrote:
> The issue with teh driver is that when you use a composite type as an INPUT
> parameter of a STored Proc teh Driver queries the pg_catalog but from what I
> can tell has no way of telling what schema to query for.
Right, the JDBC driver's internal knowledge of types has no information
about schemas or the search path. It currently assumes the name alone is
a unique identifier. Fixing this to respect the search path wouldn't be
that tough by using the regtype type, but we want to cache this
information to avoid repeated type lookups, so it wouldn't change as the
search_path changed. The other approach to fixing things would be to
allow the user to specify the schema with the type name, but I don't think
people want to do that because the schema may not be known to the
application.
Kris Jurka
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: books@ejurka.com, jasontesser@gmail.com, Kevin.Grittner@wicourts.gov
Subject: Re: Found a Bug in latest Driver (I THINK) and pg 8.4
In-Reply-To: <alpine.BSO.2.00.1006011626240.16246@leary.csoft.net>
References: <AANLkTilWwc0VmfY7YP15OFt4d8VbcZEYmuXxM-Di58xN@mail.gmail.com> <4C0508040200002500031C71@gw.wicourts.gov> <AANLkTinaVIn6ga3WtlmMkn7tYqZzDeRhJZwrjsVTVPr4@mail.gmail.com> <alpine.BSO.2.00.1006011626240.16246@leary.csoft.net>
* 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