pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Ristola <Marko.Ristola@kolumbus.fi>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: Johann Zuschlag <zuschlag2@online.de>
Cc: anoopk@pervasive-postgres.com
Cc: pgsql-odbc@postgresql.org
Subject: Re: Declare/Fetch
Date: Thu, 03 Nov 2005 00:15:47 +0200
Message-ID: <43693A93.4030209@kolumbus.fi> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC38B3@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC38B3@ratbert.vale-housing.co.uk>


Hi all.

I couldn't confirm, that the memory behaviour is good
for Declare/Fetch.

My tests lost memory about 125M, but
the behaviour should be good with forward only
cursors (about 5M proccess memory).

Without Declare/Fetch query result consumed 40M memory (600000 rows fetch).

I used Fetch=2, because it tells the worst behaviour.

So the idea with Declare/Fetch is that the memory footprint with the
process is constant,
while reading millions of rows from the database.

Regards,
Marko Ristola

Dave Page wrote:

>Hi Marko,
>
>I just committed a fix for this which passes your test program, and a
>variety of manual tests in the MS ODBC test program.
>
>Basically what was happening was that each set of results was read into
>the same block of cache, but when it extracted the values to send to
>copy_and_convert, it assume that each tuple was offset by the total
>number of tuples from the start of the cache, where it was actually
>offset by the tuple number within that set. If that makes sense :-).
>
>Can you give it a whirl please?
>
>Regards, Dave.
>  
>





view thread (6+ messages)  latest in thread

Message-ID: <43693A93.4030209@kolumbus.fi>
Permalink:  ../43693A93.4030209@kolumbus.fi/
Also on:    postgresql.org/message-id/43693A93.4030209@kolumbus.fi

 · 

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-odbc@postgresql.org
  Cc: Marko.Ristola@kolumbus.fi, dpage@vale-housing.co.uk, zuschlag2@online.de, anoopk@pervasive-postgres.com
  Subject: Re: Declare/Fetch
  In-Reply-To: <43693A93.4030209@kolumbus.fi>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC38B3@ratbert.vale-housing.co.uk> <43693A93.4030209@kolumbus.fi>

* 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