Re: out of memory issue - Mailing list pgsql-general

From Merlin Moncure
Subject Re: out of memory issue
Date
Msg-id CAHyXU0zDq8VO194voq3ji+8B-eQZLgZT5yy_W==zW1-uRNVYjA@mail.gmail.com
Whole thread Raw
In response to out of memory issue  (G N <myterag@gmail.com>)
Responses Re: out of memory issue
List pgsql-general
On Sun, Mar 3, 2013 at 11:05 AM, G N <myterag@gmail.com> wrote:
> Hello Friends,
>
>  Hope you are all well...
>
> I have a specific issue, where my query fails with below error while trying
> to export data from pgadmin SQL tool.
>
> There are no such issues when the result set is small. But it returns error
> when the result set is bit large.
>
> Any inputs please ? Where and how should memory be increased in case ?
>
> out of memory for query result

I'm guessing your query is returning a lot of data and the export
itself is not being produced with COPY.  As such, you are subject to
the limits of the 32 bit libpq you are probably using (or if  you are
using 64 bit, you are well and truly running out of memory).

Solution to move forward.
learn COPY and psql \copy.  Refer documentation.

merllin


pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: query syntax to combine 2 set returning functions ?
Next
From: Greg Jaskiewicz
Date:
Subject: Re: Scalable cluster