postgresql/src/backend/utils/cache
Tom Lane e262755bfc Fix cache flush hazard in cache_record_field_properties().
We need to increment the refcount on the composite type's cached tuple
descriptor while we do lookups of its column types.  Otherwise a cache
flush could occur and release the tuple descriptor before we're done with
it.  This fails reliably with -DCLOBBER_CACHE_ALWAYS, but the odds of a
failure in a production build seem rather low (since the pfree'd descriptor
typically wouldn't get scribbled on immediately).  That may explain the
lack of any previous reports.  Buildfarm issue noted by Christian Ullrich.

Back-patch to 9.1 where the bogus code was added.
2013-06-11 17:26:42 -04:00
..
attoptcache.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
catcache.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
evtcache.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
inval.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
lsyscache.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Make new event trigger facility actually do something. 2012-07-20 11:39:01 -04:00
plancache.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
relcache.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
relmapper.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
spccache.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
syscache.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
ts_cache.c Fix error-checking typo in check_TSCurrentConfig(). 2013-01-20 23:09:35 -05:00
typcache.c Fix cache flush hazard in cache_record_field_properties(). 2013-06-11 17:26:42 -04:00