Avoid memcpy() with same source and destination in pgstat_recv_replslot.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Dec 2020 17:38:32 +0000 (12:38 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Dec 2020 17:38:32 +0000 (12:38 -0500)
commited6329cfa975a13c58c44676464585cda5d317b3
treedb0971aab3a8ca87ba62ad3bbc74e0597b1daaaf
parent11072e86939d2f5ca0a97c709b46f29ea8b57590
Avoid memcpy() with same source and destination in pgstat_recv_replslot.

Same type of issue as in commit 53d4f5fef and earlier fixes; also
found by apparently-more-picky-than-the-buildfarm valgrind testing.
This one is an oversight in commit 986816750.  Since that's new in
HEAD, no need for a back-patch.
src/backend/postmaster/pgstat.c