Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 6A1279FA111 for ; Mon, 20 Nov 2006 11:12:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 79699-10 for ; Mon, 20 Nov 2006 15:12:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by postgresql.org (Postfix) with ESMTP id 874E09FA219 for ; Mon, 20 Nov 2006 11:12:28 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so1002703ugf for ; Mon, 20 Nov 2006 07:12:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=snlWVrEeP7SQs3P3p+aIIGpA0k5PT4hut/+V1OZ4j9awtc6exuQ2s7ZheQj/CSfxNZdJp1Ca9BlmNKlAlxUhsX4IfVKhIF5Sss8IpRqpL+O0J/HHHyE/UnBKzIeAIMGts89+ZDaUyF9b6ZQCrjqelQwKmyc2tzySzgSf5kNLYf4= Received: by 10.67.99.1 with SMTP id b1mr8046233ugm.1164035539800; Mon, 20 Nov 2006 07:12:19 -0800 (PST) Received: by 10.67.19.6 with HTTP; Mon, 20 Nov 2006 07:12:19 -0800 (PST) Message-ID: Date: Mon, 20 Nov 2006 16:12:19 +0100 From: "Pablo Araujo" To: "Heikki Linnakangas" Subject: Re: exception with a temporary table Cc: "Dave Cramer" , pgsql-jdbc@postgresql.org In-Reply-To: <45619FFA.6080200@enterprisedb.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_77093_20025132.1164035539641" References: <45619FFA.6080200@enterprisedb.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/101 X-Sequence-Number: 16143 ------=_Part_77093_20025132.1164035539641 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline well i got a trace of the SQL commands sent to the server: 2006-11-20 16:06:51 LOG: statement: PREPARE AS create local temporary table HT_item (ID BIGINT not null) on commit drop 2006-11-20 16:06:51 LOG: PARSE MESSAGE STATISTICS 2006-11-20 16:06:51 LOG: statement: 2006-11-20 16:06:51 LOG: statement: EXECUTE [PREPARE: create local temporary table HT_item (ID BIGINT not null) on commit drop] 2006-11-20 16:06:51 LOG: QUERY STATISTICS 2006-11-20 16:06:51 LOG: statement: PREPARE AS insert into HT_item select itemimpl0_.ID as ID from item itemimpl0_ where ID in ($1) 2006-11-20 16:06:51 ERROR: relation "ht_item" does not exist 2006-11-20 16:06:51 LOG: statement: PREPARE AS drop table HT_item 2006-11-20 16:06:51 LOG: PARSE MESSAGE STATISTICS 2006-11-20 16:06:51 LOG: statement: 2006-11-20 16:06:51 LOG: statement: EXECUTE [PREPARE: drop table HT_item] 2006-11-20 16:06:51 ERROR: table "ht_item" does not exist I think that the problem is in "on commit drop", because i excecute this statment in the query browse of pgAdmin III and happens the same, What I must modify? 2006/11/20, Heikki Linnakangas : > > Pablo Araujo wrote: > > ok, but this assumes that being created everything in the same session. > > > > that is to say, it creates it, it inserts data and it destroys it in the > > same session. > > Can you get a trace of the SQL commands sent to the server? One way to > get that is to set the log_statement configuration parameter in your > postgresql.conf file to "all". > > That would help diagnosing the problem. > > -- > Heikki Linnakangas > EnterpriseDB http://www.enterprisedb.com > ------=_Part_77093_20025132.1164035539641 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
well i got a trace of the SQL commands sent to the server:
 
2006-11-20 16:06:51 LOG:  statement: PREPARE <unnamed> AS create local temporary table HT_item (ID BIGINT not null) on commit drop
2006-11-20 16:06:51 LOG:  PARSE MESSAGE STATISTICS
2006-11-20 16:06:51 LOG:  statement: <BIND>
2006-11-20 16:06:51 LOG:  statement: EXECUTE <unnamed>  [PREPARE:  create local temporary table HT_item (ID BIGINT not null) on commit drop]
2006-11-20 16:06:51 LOG:  QUERY STATISTICS
2006-11-20 16:06:51 LOG:  statement: PREPARE <unnamed> AS insert into HT_item select itemimpl0_.ID as ID from item itemimpl0_ where ID in ($1)
2006-11-20 16:06:51 ERROR:  relation "ht_item" does not exist
2006-11-20 16:06:51 LOG:  statement: PREPARE <unnamed> AS drop table HT_item
2006-11-20 16:06:51 LOG:  PARSE MESSAGE STATISTICS
2006-11-20 16:06:51 LOG:  statement: <BIND>
2006-11-20 16:06:51 LOG:  statement: EXECUTE <unnamed>  [PREPARE:  drop table HT_item]
2006-11-20 16:06:51 ERROR:  table "ht_item" does not exist

I think that the problem is in "on commit drop", because i excecute this statment in the query browse of pgAdmin III and happens the same, What I must modify?
 
 
2006/11/20, Heikki Linnakangas <heikki@enterprisedb.com>:
Pablo Araujo wrote:
> ok, but this assumes that being created everything in the same session.
>
> that is to say, it creates it, it inserts data and it destroys it in the
> same session.

Can you get a trace of the SQL commands sent to the server? One way to
get that is to set the log_statement configuration parameter in your
postgresql.conf file to "all".

That would help diagnosing the problem.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

------=_Part_77093_20025132.1164035539641--