postgresql/src/backend
Tom Lane fd97d48c85 Fix an old corner-case bug in set_config_option: push_old_value has to be
called before, not after, calling the assign_hook if any.  This is because
push_old_value might fail (due to palloc out-of-memory), and in that case
there would be no stack entry to tell transaction abort to undo the GUC
assignment.  Of course the actual assignment to the GUC variable hasn't
happened yet --- but the assign_hook might have altered subsidiary state.
Without a stack entry we won't call it again to make it undo such actions.
So this is necessary to make the world safe for assign_hooks with side
effects.  Per a discussion a couple weeks ago with Magnus.

Back-patch to 8.0.  7.x did not have the problem because it did not have
allocatable stacks of GUC values.
2008-05-26 18:54:43 +00:00
..
access Remove arbitrary 10MB limit on two-phase state file size. It's not that hard 2008-05-19 18:17:03 +00:00
bootstrap On systems that have setsid(2) (which should be just about everything except 2006-11-21 20:59:53 +00:00
catalog Put a CHECK_FOR_INTERRUPTS call into the loops that try to find a unique new 2008-02-20 17:44:20 +00:00
commands Fix an ancient oversight in change_varattnos_of_a_node: it neglected to update 2008-05-09 22:37:41 +00:00
executor Fix several memory leaks when rescanning SRFs. Arrange for an SRF's 2008-02-29 02:49:47 +00:00
lib Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
libpq On win32, don't use SO_REUSEADDR for TCP sockets. 2007-06-04 11:59:40 +00:00
main Fix erroneous implementation of -s in postmaster.c (the switch doesn't take 2007-01-04 00:58:01 +00:00
nodes Rewrite make_outerjoininfo's construction of min_lefthand and min_righthand 2007-08-31 01:44:14 +00:00
optimizer Fix subselect.c to avoid assuming that a SubLink's testexpr references each 2008-01-17 20:35:34 +00:00
parser Defend against JOINs having more than 32K columns altogether. We cannot 2008-04-05 01:58:35 +00:00
po Translation updates 2008-03-14 04:51:31 +00:00
port Repair two places where SIGTERM exit could leave shared memory state 2008-04-17 00:00:01 +00:00
postmaster Backpatch my fix of rev 1.48 to avoid a division-by-zero error in the 2008-01-17 23:47:04 +00:00
regex Fix assorted security-grade bugs in the regex engine. All of these problems 2008-01-03 20:48:49 +00:00
rewrite Fix markQueryForLocking() to work correctly in the presence of nested views. 2007-03-01 18:50:36 +00:00
storage Repair two places where SIGTERM exit could leave shared memory state 2008-04-17 00:00:01 +00:00
tcop Fix portal management code to support non-default command completion tags for 2007-02-18 19:49:30 +00:00
utils Fix an old corner-case bug in set_config_option: push_old_value has to be 2008-05-26 18:54:43 +00:00
Makefile On Windows, we know the backend stack size limit because we have to 2006-10-08 17:15:34 +00:00
nls.mk Add _ to gettext triggers. Must have been forgotten here when it was introduced. 2005-10-04 11:14:03 +00:00