Re: Backend crash on query with UNION subselect - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Backend crash on query with UNION subselect
Date
Msg-id 15689.979312321@sss.pgh.pa.us
Whole thread Raw
In response to Backend crash on query with UNION subselect  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> There are two nearly identical tables, differ from each other by the
> length of corresponding fields of type CHARACTER (one has
> CHARACTER(20) field, other has CHARACTER(30) field).
> when i do "select * from table1 union select * from table2" backend
> crashes with message:
> FATAL 1: Memory exhausted in AllocSetAlloc()
> When char fileds have the same size, crash does not occur.
> This bug takes place on 7.0.2 and 7.0.3 versions

This is fixed for 7.1.  Older versions have quite a few problems with
cross-datatype UNIONs :-(

            regards, tom lane

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Backend crash on query with UNION subselect
Next
From: Chris Anderson
Date:
Subject: possible database corruption