Add support for detecting register-stack overrun on IA64.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Nov 2010 23:36:29 +0000 (19:36 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Nov 2010 23:36:29 +0000 (19:36 -0400)
commitd7a2ce4905da7d812407b6354f038aac17e97024
treee7a2884f69ed02a09b007211814ef8b6d55be201
parentdd1c781903811416db4e03383a4cb0bfc8cfac40
Add support for detecting register-stack overrun on IA64.

Per recent investigation, the register stack can grow faster than the
regular stack depending on compiler and choice of options.  To avoid
crashes we must check both stacks in check_stack_depth().

Since this is poorly-tested code, committing only to HEAD for the
moment ... but we might want to consider back-patching later.
src/backend/tcop/postgres.c