Re: Parsing speed (was Re: pgstats_initstats() cost) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Parsing speed (was Re: pgstats_initstats() cost)
Date
Msg-id 16488.1060721888@sss.pgh.pa.us
Whole thread Raw
In response to Re: Parsing speed (was Re: pgstats_initstats() cost)  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> ... If libpq grabs the entire result in one go then that may
> actually cause a problem for me when I start to move things from Oracle
> to postgres since the clients don't always have much memory available.

It does that in an ordinary SELECT.  The customary answer to this has
been "use a cursor and FETCH the number of rows you want to process at
a time".
        regards, tom lane


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Parsing speed (was Re: pgstats_initstats() cost)
Next
From: Tom Lane
Date:
Subject: Re: pg_dump and REVOKE on function