Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 91D45633488 for ; Tue, 1 Jun 2010 17:34:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 05541-01 for ; Tue, 1 Jun 2010 20:34:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 563BC633217 for ; Tue, 1 Jun 2010 17:34:45 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 6E58028422; Tue, 1 Jun 2010 16:34:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=NWCjquzc52lQycG+Aqzd5P5fATE=; b=cPX6dE kKJecx/ICqSuFXXemkoiMLeZ604VpOvD5ZB6qcOVXmN24E2vvqVPcK6MDE91LVuv AFsBUDixPezHTZ0Su8ZC3ykBwN4jHTwaPjWcrRCefeCQgRj1ACcAsJ6EY/TyQWpO oOra5Yk5F5JaXNkFGmVBsLKe630lg9pKD8oHA= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 6649928421; Tue, 1 Jun 2010 16:34:43 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 2F2D5A431; Tue, 1 Jun 2010 16:34:43 -0400 (EDT) Date: Tue, 1 Jun 2010 16:34:42 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Jason Tesser cc: Kevin Grittner , pgsql-jdbc Subject: Re: Found a Bug in latest Driver (I THINK) and pg 8.4 In-Reply-To: Message-ID: References: <4C0508040200002500031C71@gw.wicourts.gov> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/7 X-Sequence-Number: 20577 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