postgresql/src/include/access
Tom Lane 2b78d101d1 Fix SQL function execution to be safe with long-lived FmgrInfos.
fmgr_sql had been designed on the assumption that the FmgrInfo it's called
with has only query lifespan.  This is demonstrably unsafe in connection
with range types, as shown in bug #7881 from Andrew Gierth.  Fix things
so that we re-generate the function's cache data if the (sub)transaction
it was made in is no longer active.

Back-patch to 9.2.  This might be needed further back, but it's not clear
whether the case can realistically arise without range types, so for now
I'll desist from back-patching further.
2013-03-03 17:39:58 -05:00
..
attnum.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
clog.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
genam.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gin_private.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gin.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
gist_private.h Support unlogged GiST index. 2013-02-11 23:07:09 +02:00
gist.h Document and clean up gistsplit.c. 2013-02-10 11:58:15 -05:00
gistscan.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
hash.h Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
heapam_xlog.h Improve concurrency of foreign key locking 2013-01-23 12:04:59 -03:00
heapam.h Improve concurrency of foreign key locking 2013-01-23 12:04:59 -03:00
hio.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
htup_details.h Redefine HEAP_XMAX_IS_LOCKED_ONLY 2013-01-24 16:10:02 -03:00
htup.h Improve concurrency of foreign key locking 2013-01-23 12:04:59 -03:00
itup.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
multixact.h Improve concurrency of foreign key locking 2013-01-23 12:04:59 -03:00
nbtree.h Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
printtup.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
reloptions.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
relscan.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
rewriteheap.h Improve concurrency of foreign key locking 2013-01-23 12:04:59 -03:00
rmgr.h Split out list of XLog resource managers 2013-02-06 08:47:28 -03:00
rmgrlist.h Split out list of XLog resource managers 2013-02-06 08:47:28 -03:00
sdir.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
skey.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
slru.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
spgist_private.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
spgist.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
subtrans.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
sysattr.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
timeline.h Fix more issues with cascading replication and timeline switches. 2013-01-23 10:19:20 +02:00
transam.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
tupconvert.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
tupdesc.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
tupmacs.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
tuptoaster.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
twophase_rmgr.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
twophase.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
valid.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
visibilitymap.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
xact.h Fix SQL function execution to be safe with long-lived FmgrInfos. 2013-03-03 17:39:58 -05:00
xlog_fn.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
xlog_internal.h Force archive_status of .done for xlogs created by dearchival/replication. 2013-02-15 19:28:06 +02:00
xlog.h Support unlogged GiST index. 2013-02-11 23:07:09 +02:00
xlogdefs.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
xlogreader.h Use the right timeline when beginning to stream from master. 2013-01-18 11:46:49 +02:00
xlogutils.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00