pgsql: Skip memcpy(x, x) in qunique(). - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Skip memcpy(x, x) in qunique().
Date
Msg-id E1inp9u-0002n2-Ex@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make tab-completion tests more robust.
Next
From: Tom Lane
Date:
Subject: pgsql: In tab-completion test, print out the value of TERM before chang