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

BUG #5989: Assertion failure on UPDATE of big value

From: "Marko Tiikkaja" <marko(dot)tiikkaja(at)2ndquadrant(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5989: Assertion failure on UPDATE of big value
Date: 2011-04-20 14:11:24
Message-ID: 201104201411.p3KEBOfA009414@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      5989
Logged by:          Marko Tiikkaja
Email address:      marko(dot)tiikkaja(at)2ndquadrant(dot)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.

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2011-04-20 14:26:44
Subject: Re: BUG #5989: Assertion failure on UPDATE of big value
Previous:From: Tom LaneDate: 2011-04-20 13:11:16
Subject: Re: BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy

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