Skip site navigation (1) Skip section navigation (2)

updated patch for selecting large results sets in psql using cursors

From: <chrisnospam(at)1006(dot)org>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: updated patch for selecting large results sets in psql using cursors
Date: 2006-08-28 14:29:38
Message-ID: 17911.193.206.186.101.1156775378.squirrel@www.endian.it (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Hi there,

here comes the latest version (version 7) of the patch to handle large
result sets with psql.  As previously discussed, a cursor is used
for SELECT queries when \set FETCH_COUNT some_value > 0
(defaults to 100 if FETCH_COUNT is set with no value).

Comparing to the previous version, the patch actually got smaller and is
less invasive, because I doesn't have to deal with a new command and
can share some more code with SendQuery() in common.c.

Bye,
Chris.


--
Chris Mair
http://www.1006.org



Attachment: psql_cursor-7.patch
Description: text/x-patch (8.0 KB)

Responses

pgsql-hackers by date

Next:From: chrisnospamDate: 2006-08-28 14:35:17
Subject: Re: selecting large result sets in psql using
Previous:From: Alvaro HerreraDate: 2006-08-28 14:18:35
Subject: Re: [HACKERS] Trivial patch to double vacuum speed on tables with no indexes

pgsql-patches by date

Next:From: chrisnospamDate: 2006-08-28 14:35:17
Subject: Re: selecting large result sets in psql using
Previous:From: Alvaro HerreraDate: 2006-08-28 14:18:35
Subject: Re: [HACKERS] Trivial patch to double vacuum speed on tables with no indexes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group