postgresql/src
Tom Lane 2faab1af69 Check for stack overflow in transformSetOperationTree().
Since transformSetOperationTree() recurses, it can be driven to stack
overflow with enough UNION/INTERSECT/EXCEPT clauses in a query.  Add a
check to ensure it fails cleanly instead of crashing.  Per report from
Matthew Gerber (though it's not clear whether this is the only thing
going wrong for him).

Historical note: I think the reasoning behind not putting a check here in
the beginning was that the check in transformExpr() ought to be sufficient
to guard the whole parser.  However, because transformSetOperationTree()
recurses all the way to the bottom of the set-operation tree before doing
any analysis of the statement's expressions, that check doesn't save it.
2012-11-11 19:56:36 -05:00
..
backend Check for stack overflow in transformSetOperationTree(). 2012-11-11 19:56:36 -05:00
bin Further tweaking of the readfile() function in pg_ctl. 2012-10-18 22:30:55 +03:00
include Fix planning of non-strict equivalence clauses above outer joins. 2012-10-18 12:29:19 -04:00
interfaces Fix lo_import and lo_export to return useful error messages more often. 2012-10-08 21:53:04 -04:00
makefiles Fix PGXS support for building loadable modules on AIX. 2012-10-09 21:04:30 -04:00
pl Back-patch fix and test case for bug #7516. 2012-09-14 11:50:19 -04:00
port Stamp 8.3.21. 2012-09-19 17:58:37 -04:00
template Use SYSV semaphores rather than POSIX on Darwin >= 6.0 (i.e., OS X 10.2 2007-09-26 00:32:46 +00:00
test Prevent parser from believing that views have system columns. 2012-10-24 14:54:17 -04:00
timezone Update time zone data files to tzdata release 2012f. 2012-09-19 10:46:10 -04:00
tools Backpatch "Use the preferred version of xsubpp." 2011-11-28 07:46:15 -05:00
tutorial Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:12 +02:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
Makefile.global.in Back-patch creation of tar.bz2 tarball during "make dist". 2011-07-03 16:40:34 -04:00
Makefile.shlib Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:24:45 -04:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00