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/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5b630501e9fa58c5069b36247d63fc460d912c7f

Modified Files
--------------
src/include/lib/qunique.h | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

Reply via email to