Re: ERROR: Out of memory - when connecting to database

From: Jakub Ouhrabka <kuba(at)comgate(dot)cz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: Out of memory - when connecting to database
Date: 2010-11-08 20:39:45
Message-ID: 4CD86011.8050801@comgate.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> They clearly were: notice the reference to "Autovacuum context" in the
> memory map. I think you are right to suspect that auto-analyze was
> getting blown out by the wide bytea columns. Did you have any
> expression indexes involving those columns?

Yes, there are two unique btree indexes:

(col1, col2, col3, md5(array_to_string(col_bytea_arr, ''::text)) where
col4 is not null

(col1, col2, col3, md5(array_to_string(col_bytea_arr, ''::text)) where
col4 is null

What is the cause of the out of memory then?

Thank you,

Kuba

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-11-08 20:45:12 Re: finding the other statement causing a sharelock
Previous Message Michael Glaesemann 2010-11-08 20:37:50 Removing pgsql_tmp files