pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Poul Møller Hansen <freebsd@pbnet.dk>
To: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: CachedRowSetXImpl() and PostgreSQL
Date: Thu, 21 Sep 2006 22:32:43 +0200
Message-ID: <4512F6EB.8000701@pbnet.dk> (raw)
In-Reply-To: <4512ED36.70600@opencloud.com>
References: <45129B84.9000208@pbnet.dk>
	<4512EB32.5080302@pbnet.dk>
	<4512ED36.70600@opencloud.com>


>
> 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





view thread (8+ messages)  latest in thread

Message-ID: <4512F6EB.8000701@pbnet.dk>
Permalink:  ../4512F6EB.8000701@pbnet.dk/
Also on:    postgresql.org/message-id/4512F6EB.8000701@pbnet.dk

 · 

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: freebsd@pbnet.dk, oliver@opencloud.com
  Subject: Re: CachedRowSetXImpl() and PostgreSQL
  In-Reply-To: <4512F6EB.8000701@pbnet.dk>
  References: <45129B84.9000208@pbnet.dk> <4512EB32.5080302@pbnet.dk> <4512ED36.70600@opencloud.com> <4512F6EB.8000701@pbnet.dk>

* 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