Re: Query memory usage

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tom Duffey <tduffey(at)trillitech(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query memory usage
Date: 2010-05-16 00:28:41
Message-ID: 20532.1273969721@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Duffey <tduffey(at)trillitech(dot)com> writes:
> On May 15, 2010, at 4:51 PM, Tom Lane wrote:
>> What's being done on the client side with the data?

> I am executing the query in psql at the command line and piping the
> result to a file, e.g.,
> psql < get_data.sql > data.sql

Well, I tried executing a large "copy (select ...)" query and couldn't
see any memory bloat at all in either the backend or psql. So there's
something relevant that you haven't told us.

Could we see the full schema (eg via psql \dt) for the table being
copied?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Duffey 2010-05-16 00:42:26 Re: Query memory usage
Previous Message Tom Duffey 2010-05-16 00:08:40 Re: Query memory usage