X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 5D9029FB2F0 for ; Thu, 21 Sep 2006 17:33:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 74082-05 for ; Thu, 21 Sep 2006 20:32:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from kjeld.care4all.dk (cpe.atm2-0-52453.0x50a4a22a.esnxx3.customer.tele.dk [80.164.162.42]) by postgresql.org (Postfix) with ESMTP id B63589FB300 for ; Thu, 21 Sep 2006 17:32:54 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by kjeld.care4all.dk (Postfix) with ESMTP id 980F4420342; Thu, 21 Sep 2006 22:32:47 +0200 (CEST) Received: from kjeld.care4all.dk ([127.0.0.1]) by localhost (kjeld.care4all.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27593-02; Thu, 21 Sep 2006 22:32:39 +0200 (CEST) Received: from [172.19.10.10] (x1-6-00-80-c8-03-a6-d7.k438.webspeed.dk [83.89.23.114]) by kjeld.care4all.dk (Postfix) with ESMTP; Thu, 21 Sep 2006 22:32:36 +0200 (CEST) Message-ID: <4512F6EB.8000701@pbnet.dk> Date: Thu, 21 Sep 2006 22:32:43 +0200 From: =?ISO-8859-1?Q?Poul_M=F8ller_Hansen?= User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: CachedRowSetXImpl() and PostgreSQL References: <45129B84.9000208@pbnet.dk> <4512EB32.5080302@pbnet.dk> <4512ED36.70600@opencloud.com> In-Reply-To: <4512ED36.70600@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.3.3 (20050822) (Debian) at care4all.dk X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.204 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, SPF_NEUTRAL X-Spam-Level: * X-Archive-Number: 200609/83 X-Sequence-Number: 15801 > > If you could at least track it down to a particular metadata call that > the driver is incorrectly implementing that might get a response, but > as it is there is nothing I can debug here. Isn't that what I did ? Here is all statements when setting the table name to "my.table": ----- SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED; BEGIN; SELECT t.typlen FROM pg_catalog.pg_type t, pg_catalog.pg_namespace n WHERE t.typnamespace=n.oid AND t.typname='name' AND n.nspname='pg_catalog'; SELECT n.nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,def.adsrc,dsc.description FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_class c ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (a.attrelid=c.oid) LEFT JOIN pg_catalog.pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) LEFT JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) LEFT JOIN pg_catalog.pg_class dc ON (dc.oid=dsc.classoid AND dc.relname='pg_class') LEFT JOIN pg_catalog.pg_namespace dn ON (dc.relnamespace=dn.oid AND dn.nspname='pg_catalog') WHERE a.attnum > 0 AND NOT a.attisdropped AND c.relname LIKE 'my.table' AND a.attname LIKE 'id' ORDER BY nspname,relname,attnum; SELECT n.nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,def.adsrc,dsc.description FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_class c ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (a.attrelid=c.oid) LEFT JOIN pg_catalog.pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) LEFT JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) LEFT JOIN pg_catalog.pg_class dc ON (dc.oid=dsc.classoid AND dc.relname='pg_class') LEFT JOIN pg_catalog.pg_namespace dn ON (dc.relnamespace=dn.oid AND dn.nspname='pg_catalog') WHERE a.attnum > 0 AND NOT a.attisdropped AND c.relname LIKE 'my.table' AND a.attname LIKE 'url' ORDER BY nspname,relname,attnum; ROLLBACK; SHOW TRANSACTION ISOLATION LEVEL; ----- It will not fine "my.table" as it should have been "table" only. If I set the tablename to "table" the result is this: ----- SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED; BEGIN; SELECT t.typlen FROM pg_catalog.pg_type t, pg_catalog.pg_namespace n WHERE t.typnamespace=n.oid AND t.typname='name' AND n.nspname='pg_catalog'; SELECT n.nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,def.adsrc,dsc.description FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_class c ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (a.attrelid=c.oid) LEFT JOIN pg_catalog.pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) LEFT JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) LEFT JOIN pg_catalog.pg_class dc ON (dc.oid=dsc.classoid AND dc.relname='pg_class') LEFT JOIN pg_catalog.pg_namespace dn ON (dc.relnamespace=dn.oid AND dn.nspname='pg_catalog') WHERE a.attnum > 0 AND NOT a.attisdropped AND c.relname LIKE 'table' AND a.attname LIKE 'id' ORDER BY nspname,relname,attnum; SELECT n.nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,def.adsrc,dsc.description FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_class c ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (a.attrelid=c.oid) LEFT JOIN pg_catalog.pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) LEFT JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) LEFT JOIN pg_catalog.pg_class dc ON (dc.oid=dsc.classoid AND dc.relname='pg_class') LEFT JOIN pg_catalog.pg_namespace dn ON (dc.relnamespace=dn.oid AND dn.nspname='pg_catalog') WHERE a.attnum > 0 AND NOT a.attisdropped AND c.relname LIKE 'table' AND a.attname LIKE 'url' ORDER BY nspname,relname,attnum; SELECT id, url FROM table WHERE id = $1 AND url = $2 2006-09-21 14:30:40 CEST - ERROR: relation "table" does not exist ROLLBACK; SHOW TRANSACTION ISOLATION LEVEL; ----- Please let me know if more is needed. Poul