From: John Beaver <john_beaver@hms.harvard.edu>
To: Pierre C <lists@peufeu.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: *** PROBABLY SPAM *** Does the psql executable support a "fetch many" approach when dumping large queries to stdout?
Date: Fri, 2 Apr 2010 18:19:38 -0400
Message-ID: <4BB66D7A.1090605@hms.harvard.edu> (raw)
In-Reply-To: <op.vajyiejneorkce@immo.peufeu.com>
References: <62307826D0C1F74BAFE47B6747FA8C2C5407AED155@ITCCRMAIL02.MED.HARVARD.EDU>
<op.vajyiejneorkce@immo.peufeu.com>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That makes sense. I'll just use a COPY statement instead like Hannu
suggests.<br>
<br>
Pierre C wrote:
<blockquote cite="mid:op.vajyiejneorkce@immo.peufeu.com" type="cite">
<blockquote type="cite">
<pre wrap="">Does the psql executable have any ability to do a "fetch many", using a
server-side named cursor, when returning results? It seems like it tries
to retrieve the query entirely to local memory before printing to
standard out.
</pre>
</blockquote>
<pre wrap=""><!---->
I think it grabs the whole result set to calculate the display column
widths. I think there is an option to tweak this but don't remember which,
have a look at the psql commands (\?), formatting section.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
John E. Beaver
Bioinformatics Developer
Harvard Medical School</pre>
</body>
</html>
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: john_beaver@hms.harvard.edu, lists@peufeu.com
Subject: Re: *** PROBABLY SPAM *** Does the psql executable support a "fetch many" approach when dumping large queries to stdout?
In-Reply-To: <4BB66D7A.1090605@hms.harvard.edu>
* 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