Re: A bug with ALTER TABLE SET WITHOUT OIDS in CVS HEAD - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: A bug with ALTER TABLE SET WITHOUT OIDS in CVS HEAD
Date
Msg-id 20081105203129.GW4114@alvh.no-ip.org
Whole thread Raw
In response to A bug with ALTER TABLE SET WITHOUT OIDS in CVS HEAD  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: A bug with ALTER TABLE SET WITHOUT OIDS in CVS HEAD  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas wrote:

> made this test case crash:
>
> CREATE TABLE xtable (padding char(2000)) WITH OIDS;
> INSERT INTO xtable  VALUES('1');
> ALTER TABLE xtable SET WITHOUT OIDS;
> INSERT INTO xtable (SELECT * FROM xtable);
>
> with assertion failure:
>
> TRAP: FailedAssertion("!(!(tup->t_data->t_infomask & 0x0008))", File:  
> "heapam.c", Line: 1782)

I think the fix is to just remove the Assert() ...

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: A bug with ALTER TABLE SET WITHOUT OIDS in CVS HEAD
Next
From: Kenneth Marshall
Date:
Subject: Re: [RRR] Tests citext casts