Skip memcpy(x, x) in qunique().
authorNoah Misch <noah@leadboat.com>
Sat, 4 Jan 2020 19:31:42 +0000 (11:31 -0800)
committerNoah Misch <noah@leadboat.com>
Sat, 4 Jan 2020 19:31:42 +0000 (11:31 -0800)
commit5b630501e9fa58c5069b36247d63fc460d912c7f
treee727c0d91f301e3eb06c73e6d55b52dc8e821a71
parentfac1c04feca6d01f2d324088c5899485f55b6217
Skip memcpy(x, x) in qunique().

It has undefined behavior.  Follow the precedent of commit
9a9473f3cce1a21c25d6cc7569710e832d2b180b.  No back-patch, since the
master branch alone has this function.

Discussion: https://postgr.es/m/20191229070221.GA13873@gust.leadboat.com
src/include/lib/qunique.h