Skip site navigation (1) Skip section navigation (2)

Re: Vacuum & Memory Exhausted error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Spiegelberg <gspiegelberg(at)cranel(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Vacuum & Memory Exhausted error
Date: 2003-06-17 16:13:14
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Greg Spiegelberg <gspiegelberg(at)cranel(dot)com> writes:
> The problem is that the "VACUUM ANALYZE;" results in a
>    ERROR:  Memory exhausted in AllocSetAlloc(1048575996)

If you do VACUUM and ANALYZE separately, which part shows the failure?
(I'm betting on ANALYZE.)  And have you narrowed down which table it
fails on?  (Adding the VERBOSE option would let you track that.)

This looks to me like a data-corruption problem, specifically a bad
value of the length word in a variable-length field.  (Adjacent data
is probably clobbered too, but the length problem is showing itself
first.)  See previous threads in the archives for general advice about
tracking down broken rows and getting rid of them.

			regards, tom lane

In response to


pgsql-admin by date

Next:From: Donald FraserDate: 2003-06-17 16:58:24
Subject: Redhat 9.0
Previous:From: scott.marloweDate: 2003-06-17 14:37:41
Subject: Re: psql DBNAME -U USER (how to disable -U option?)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group