From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Alexandre - Aldeia Digital <alepaes@aldeiadigital.com.br>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Problem with Use Declare/Fetch
Date: Wed, 11 Apr 2012 22:38:52 +0900
Message-ID: <4F85896C.2050402@tpf.co.jp> (raw)
In-Reply-To: <4F837001.9000207@aldeiadigital.com.br>
References: <4F624C5D.1010809@aldeiadigital.com.br>
<4F627C3D.8070302@tpf.co.jp>
<4F837001.9000207@aldeiadigital.com.br>
Hi Alexandre,
(2012/04/10 8:25), Alexandre - Aldeia Digital wrote:
> Hi Hiroshi,
>
> Sorry for delay!
>
> I sent the links to download the logs directly in your e-mail.
> I analyzed the logs and I believe that the error was in this cursor:
>
> [1168-47.972] stmt_with_params = 'declare "P00954" cursor for SELECT
> T1.Fn04CodEmp(...)
>
> This query must return about 14k rows. But with use/declare fectch (in
> this case, cache size = 10), returns only 10 rows.
It seems OK to me. Psqlodbc driver fetches tuples using extended query
other than the 1st fetch. You can see the following lines in many
places
SendExecuteRequest: plan_name=P00954 count=10
and the query returns 14725 tuples as a result.
[1168-332.835]end of tuple list -- setting inUse to false: this =
083A0810 SELECT 5
ELECT 5
[1168-332.835]_QR_next_tuple: 'C' fetch_total = 14725 & this_fetch = 5
> I don't search in other areas, but if you need I can do this.
>
> Another doubt: My Rollback on erros is set to Transaction. But I can see
> some SAVEPOINT/RELEASE statements. It's normal ?
Yes the driver uses savepoint/rollback in some internal queries.
regards,
Hiroshi Inoue
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-odbc@postgresql.org
Cc: inoue@tpf.co.jp, alepaes@aldeiadigital.com.br
Subject: Re: Problem with Use Declare/Fetch
In-Reply-To: <4F85896C.2050402@tpf.co.jp>
References: <4F624C5D.1010809@aldeiadigital.com.br> <4F627C3D.8070302@tpf.co.jp> <4F837001.9000207@aldeiadigital.com.br> <4F85896C.2050402@tpf.co.jp>
* 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