From: Pablo Araujo <ferarap@gmail.com>
To: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: exception with a temporary table
Date: Mon, 20 Nov 2006 16:12:19 +0100
Message-ID: <b8e724640611200712i3466d488kb8addeafa2d23713@mail.gmail.com> (raw)
In-Reply-To: <45619FFA.6080200@enterprisedb.com>
References: <b8e724640611200205h6e1d9c57t82255c06d1529be9@mail.gmail.com>
<DCC67038-5028-4453-81B4-689002045C57@fastcrypt.com>
<b8e724640611200423l235ff8a1j6a2b4a3ff62e9dac@mail.gmail.com>
<45619FFA.6080200@enterprisedb.com>
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
>
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: ferarap@gmail.com, heikki@enterprisedb.com, pg@fastcrypt.com
Subject: Re: exception with a temporary table
In-Reply-To: <b8e724640611200712i3466d488kb8addeafa2d23713@mail.gmail.com>
References: <b8e724640611200205h6e1d9c57t82255c06d1529be9@mail.gmail.com> <DCC67038-5028-4453-81B4-689002045C57@fastcrypt.com> <b8e724640611200423l235ff8a1j6a2b4a3ff62e9dac@mail.gmail.com> <45619FFA.6080200@enterprisedb.com> <b8e724640611200712i3466d488kb8addeafa2d23713@mail.gmail.com>
* 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