postgresql/src/backend/utils/cache
Tom Lane 71aa4801a8 Get rid of shared_record_typmod_registry_worker_detach; it doesn't work.
This code is unsafe, as proven by buildfarm failures, because it tries
to access shared memory that might already be gone.  It's also unnecessary,
because we're about to exit the process anyway and so the record type cache
should never be accessed again.  The idea was to lay some foundations for
someday recycling workers --- which would require attaching to a different
shared tupdesc registry --- but that will require considerably more
thought.  In the meantime let's save some bytes by just removing the
nonfunctional code.

Problem identification, and proposal to fix by removing functionality
from the detach function, by Thomas Munro.  I went a bit further by
removing the function altogether.

Discussion: https://postgr.es/m/E1dsguX-00056N-9x@gemulon.postgresql.org
2017-09-15 10:52:30 -04:00
..
attoptcache.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
catcache.c Change tupledesc->attrs[n] to TupleDescAttr(tupledesc, n). 2017-08-20 11:19:07 -07:00
evtcache.c Use NIL rather than NULL to represent an empty list. 2017-06-06 11:21:22 -04:00
inval.c Reduce excessive dereferencing of function pointers 2017-09-07 13:56:09 -04:00
lsyscache.c Introduce 64-bit hash functions with a 64-bit seed. 2017-08-31 22:21:21 -04:00
Makefile Add infrastructure for mapping relfilenodes to relation OIDs. 2013-07-22 11:09:10 -04:00
plancache.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
relcache.c Change tupledesc->attrs[n] to TupleDescAttr(tupledesc, n). 2017-08-20 11:19:07 -07:00
relfilenodemap.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
relmapper.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
spccache.c Reduce lock levels for table storage params related to planning 2017-03-06 16:04:31 +05:30
syscache.c Allow SET STATISTICS on expression indexes 2017-09-06 13:46:01 -07:00
ts_cache.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
typcache.c Get rid of shared_record_typmod_registry_worker_detach; it doesn't work. 2017-09-15 10:52:30 -04:00