Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DAEDF1337B54 for ; Wed, 20 Apr 2011 11:11:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 69617-05 for ; Wed, 20 Apr 2011 14:11:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 936881337B47 for ; Wed, 20 Apr 2011 11:11:24 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p3KEBODi009416 for ; Wed, 20 Apr 2011 14:11:24 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p3KEBOfA009414; Wed, 20 Apr 2011 14:11:24 GMT (envelope-from www) Date: Wed, 20 Apr 2011 14:11:24 GMT Message-Id: <201104201411.p3KEBOfA009414@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5989: Assertion failure on UPDATE of big value From: "Marko Tiikkaja" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201104/144 X-Sequence-Number: 30063 The following bug has been logged online: Bug reference: 5989 Logged by: Marko Tiikkaja Email address: marko.tiikkaja@2ndquadrant.com PostgreSQL version: git master Operating system: Linux Description: Assertion failure on UPDATE of big value Details: Test case: =# create table foo(a int[]); CREATE TABLE =# insert into foo select array(select i from generate_series(1,10000) i); INSERT 0 1 =# update foo set a = a||1; TRAP: FailedAssertion("!(((bool) (((void*)(&(newTuple->t_self)) != ((void *)0)) && ((&(newTuple->t_self))->ip_posid != 0))))", File: "predicate.c", Line: 2282) The assertion only seems to trigger if the array is big enough to be TOASTed, but I didn't debug further to see if that's really the case.