BUG #4804: ERROR out of memory on select bytea field legth about 120Mb

From: "Vadim Fedorenko" <junk(at)fromru(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4804: ERROR out of memory on select bytea field legth about 120Mb
Date: 2009-05-09 09:08:21
Message-ID: 200905090908.n4998Lg6094522@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4804
Logged by: Vadim Fedorenko
Email address: junk(at)fromru(dot)com
PostgreSQL version: 8.3.3
Operating system: Windows 2003 Server R2 64bit
Description: ERROR out of memory on select bytea field legth about
120Mb
Details:

Hi!

I have a database about 4Gb and pg_dump fails with

ERROR: out of memory
DETAIL: Failed on request of size 536870912.

on it.

I found out that it fails on selecting bug bytea field:

select length(binarydata) from config where datasize >120000000
results 138124811

and

select binarydata from config where datasize >120000000

results
ERROR: out of memory
DETAIL: Failed on request of size 536870912.

how can I workaround this?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-05-09 14:36:38 Re: BUG #4804: ERROR out of memory on select bytea field legth about 120Mb
Previous Message Peter Much 2009-05-09 01:29:20 Re: BUG #4801: Performance failure: 600 MB written to each WAL log