postgresql/src/backend/utils/cache
Tom Lane 722eb325b9 Avoid memcpy() with same source and destination during relmapper init.
A narrow reading of the C standard says that memcpy(x,x,n) is undefined,
although it's hard to envision an implementation that would really
misbehave.  However, analysis tools such as valgrind might whine about
this; accordingly, let's band-aid relmapper.c to not do it.

See also 5b630501e, d3f4e8a8a, ad7b48ea0, and other similar fixes.
Apparently, none of those folk tried valgrinding initdb?  This has been
like this for long enough that I'm surprised it hasn't been reported
before.

Back-patch, just in case anybody wants to use a back branch on a platform
that complains about this; we back-patched those earlier fixes too.

Discussion: https://postgr.es/m/161790.1608310142@sss.pgh.pa.us
2020-12-18 15:46:44 -05:00
..
attoptcache.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
catcache.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
evtcache.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
inval.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
lsyscache.c Fix incorrect parameter name in a function header comment 2020-10-25 22:40:58 +13:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
partcache.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
plancache.c Allow the planner-related functions and hook to accept the query string. 2020-03-30 13:51:05 +09:00
relcache.c Fix rd_firstRelfilenodeSubid for nailed relations, in parallel workers. 2020-09-09 18:50:32 -07:00
relfilenodemap.c Spelling adjustments 2020-06-07 15:06:51 +02:00
relmapper.c Avoid memcpy() with same source and destination during relmapper init. 2020-12-18 15:46:44 -05:00
spccache.c Introduce a maintenance_io_concurrency setting. 2020-03-16 17:14:26 +13:00
syscache.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
ts_cache.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
typcache.c Rename assorted LWLock tranches. 2020-05-15 18:11:07 -04:00