pgsql: Skip memcpy(x, x) in qunique().

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Skip memcpy(x, x) in qunique().
Date: 2020-01-04 19:32:26
Message-ID: E1inp9u-0002n2-Ex@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-01-04 19:50:47 Re: pgsql: Add basic TAP tests for psql's tab-completion logic.
Previous Message Tom Lane 2020-01-04 19:29:39 pgsql: Make tab-completion tests more robust.