X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 627AC30EEA1 for ; Tue, 17 Jun 2003 16:23:31 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 53277-05 for ; Tue, 17 Jun 2003 13:23:21 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id A16F030F185 for ; Tue, 17 Jun 2003 13:23:20 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5HGDEU6013377; Tue, 17 Jun 2003 12:13:15 -0400 (EDT) To: Greg Spiegelberg Cc: pgsql-admin@postgresql.org Subject: Re: Vacuum & Memory Exhausted error In-reply-to: <3EEF26CC.9020102@cranel.com> References: <3EEF26CC.9020102@cranel.com> Comments: In-reply-to Greg Spiegelberg message dated "Tue, 17 Jun 2003 10:33:48 -0400" Date: Tue, 17 Jun 2003 12:13:14 -0400 Message-ID: <13376.1055866394@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/203 X-Sequence-Number: 9194 Greg Spiegelberg 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