Re: Backend crash on query with UNION subselect

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ltd(at)ippe(dot)obninsk(dot)ru, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Backend crash on query with UNION subselect
Date: 2001-01-12 15:12:01
Message-ID: 15689.979312321@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2001-01-13 02:28:25 Re: possible database corruption
Previous Message pgsql-bugs 2001-01-12 09:26:45 Backend crash on query with UNION subselect