]> granicus.if.org Git - postgresql/commit
Get rid of shared_record_typmod_registry_worker_detach; it doesn't work.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Sep 2017 14:52:30 +0000 (10:52 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Sep 2017 14:52:30 +0000 (10:52 -0400)
commit71aa4801a8184eb422c6bf51631bda76f1011278
tree6e973ee3fff61fcde1debf0df14819cbd50f9a98
parent60cd2f8a2d1a1e763b2df015e2e660caa9e39a67
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
src/backend/utils/cache/typcache.c