On Sat, 11 Dec 2004 18:28:15 -0500, Tom Lane [EMAIL PROTECTED] wrote:
I have applied the attached patch to HEAD in order to fix the problems
discussed in this thread:
http://archives.postgresql.org/pgsql-hackers/2004-12/msg00187.php
regards, tom lane
Well, I was
I wrote:
The cause of this failure is that parse_coerce.c thinks that a child
table's rowtype is binary-compatible with its parent's rowtype:
...
The Really Clean And Correct fix to this, IMHO, would be to invent a new
expression node type that represents coercing a rowtype expression to a
[EMAIL PROTECTED] writes:
template2=# CREATE TABLE base (i integer);
template2=# CREATE TABLE derived () INHERITS (base);
template2=# INSERT INTO derived (i) VALUES (0);
template2=# SELECT derived::base FROM derived;
TRAP: FailedAssertion
The cause of this failure is that parse_coerce.c
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