Re: [PATCHES] [HACKERS] 8.0.0beta5 FailedAssertion (Crash) when casting composite types

2004-12-13 Thread kris . shannon
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

Re: [HACKERS] 8.0.0beta5 FailedAssertion (Crash) when casting composite types

2004-12-10 Thread Tom Lane
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

Re: [HACKERS] 8.0.0beta5 FailedAssertion (Crash) when casting composite types

2004-12-05 Thread Tom Lane
[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

[HACKERS] 8.0.0beta5 FailedAssertion (Crash) when casting composite types

2004-12-03 Thread kris . shannon
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