aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexec.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-12-29 17:41:35 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-12-29 17:41:35 +0000
commit56a87f2721a7157d0cd720e0743760e107100d43 (patch)
tree753c7e9a8fe1d57ab81938ecebe86cde69dd55a8 /src/backend/regex/regexec.c
parent3bd13da63ba3be6ff143190fc234e15783d51357 (diff)
downloadpostgresql-56a87f2721a7157d0cd720e0743760e107100d43.tar.gz
postgresql-56a87f2721a7157d0cd720e0743760e107100d43.zip
Previous fix for temporary file management broke returning a set from
PL/pgSQL function within an exception handler. Make sure we use the right resource owner when we create the tuplestore to hold returned tuples. Simplify tuplestore API so that the caller doesn't need to be in the right memory context when calling tuplestore_put* functions. tuplestore.c automatically switches to the memory context used when the tuplestore was created. Tuplesort was already modified like this earlier. This patch also removes the now useless MemoryContextSwitch calls from callers. Report by Aleksei on pgsql-bugs on Dec 22 2009. Backpatch to 8.1, like the previous patch that broke this.
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions