Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uq6Hv-0003P9-US for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Jun 2013 18:42:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Uq6Hv-0000dq-9u for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Jun 2013 18:42:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uq6Ht-0000dh-A1 for pgsql-bugs@postgresql.org; Fri, 21 Jun 2013 18:42:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uq6Hk-00087f-AJ for pgsql-bugs@postgresql.org; Fri, 21 Jun 2013 18:42:20 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r5LIgAYf022256; Fri, 21 Jun 2013 14:42:11 -0400 (EDT) From: Tom Lane To: kapplegate@apsalar.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8245: Urgent:Query on slave failing with invalid memory alloc request size 18446744073709537559 In-reply-to: References: Comments: In-reply-to kapplegate@apsalar.com message dated "Fri, 21 Jun 2013 14:05:00 -0000" Date: Fri, 21 Jun 2013 14:42:10 -0400 Message-ID: <22255.1371840130@sss.pgh.pa.us> X-Pg-Spam-Score: -0.7 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org kapplegate@apsalar.com writes: > One of our queries has started failing randomly on our slaves with > invalid memory alloc request size 18446744073709537559 It's hard to say much with that amount of information. Is it always the exact same number? The root cause is probably either corrupted data (that is, a trashed length word for some variable-width field) or some internal logic bug that's causing the server to miscompute how much memory it needs for some transient allocation. You could confirm or refute the corrupt-data hypothesis by seeing if you can pg_dump each of the tables referenced by the failing procedure. If pg_dump fails with the same error then it's corrupt data, else not. If it's a bug, though, we'd still be needing more info to track it down. Don't suppose you'd want to change that specific ERROR to a PANIC so we could get a stack trace :-( regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs