8.0.0beta5 FailedAssertion (Crash) when casting composite types

From: kris(dot)shannon(at)gmail(dot)com
To: Postgresql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: 8.0.0beta5 FailedAssertion (Crash) when casting composite types
Date: 2004-12-03 21:31:21
Message-ID: bf38a9f04120313313955d538@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

template2=# SELECT version();
version
----------------------------------------------------------------------------------------------
PostgreSQL 8.0.0beta5 on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
3.4.2 (Debian 3.4.2-3)
(1 row)
template2=# CREATE TABLE base (i integer);
CREATE TABLE
template2=# CREATE TABLE derived () INHERITS (base);
CREATE TABLE
template2=# INSERT INTO derived (i) VALUES (0);
INSERT 0 1
template2=# SELECT derived::base FROM derived;

TRAP: FailedAssertion("!(typeId == (
(olddata)->t_choice.t_datum.datum_typeid ))", File: "tuptoaster.c",
Line: 830)

Ouch!

The actual case that I discovered this on had extra columns in the
derived table and I was expecting some sort of error message (and I
guess I got one - just a little more extreme than I was expecting)

--
Kris Shannon <kris(dot)shannon(at)gmail(dot)com>

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-12-03 21:34:26 Re: Buildfarm coverage (was Re: OK, ready for RC1 or Beta6)
Previous Message Marc G. Fournier 2004-12-03 21:12:04 1 Hour To RC1 ...

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-12-05 00:08:29 Re: Charset WIN1252
Previous Message Tom Lane 2004-12-03 20:37:41 Re: utf-8 flag always off in plperl function arguments