Re: [PERFORM] psql -A (unaligned format) eats too much memory - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PERFORM] psql -A (unaligned format) eats too much memory
Date
Msg-id 20512.1149521250@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PERFORM] psql -A (unaligned format) eats too much memory  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: [PERFORM] psql -A (unaligned format) eats too much memory  ("Jim C. Nasby" <jnasby@pervasive.com>)
Re: [PERFORM] psql -A (unaligned format) eats too much  (Zoltan Boszormenyi <zboszor@dunaweb.hu>)
List pgsql-hackers
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> I've been able to verify this on 8.1.4; psql -A -t -c 'SELECT * FROM
> largetable' > /dev/null results in psql consuming vast quantities of
> memory. Why is this?

Is it different without the -A?

I'm reading this as just another uninformed complaint about libpq's
habit of buffering the whole query result.  It's possible that there's
a memory leak in the -A path specifically, but nothing said so far
provided any evidence for that.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: [PERFORM] psql -A (unaligned format) eats too much memory
Next
From: "Jim C. Nasby"
Date:
Subject: Re: [PERFORM] psql -A (unaligned format) eats too much memory