Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group