pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Skip memcpy(x, x) in qunique().
Date: Sat, 04 Jan 2020 19:32:26 +0000
Message-ID: <E1inp9u-0002n2-Ex@gemulon.postgresql.org> (raw)

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



Message-ID: <E1inp9u-0002n2-Ex@gemulon.postgresql.org>
Permalink:  ../E1inp9u-0002n2-Ex@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1inp9u-0002n2-Ex@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Skip memcpy(x, x) in qunique().
  In-Reply-To: <E1inp9u-0002n2-Ex@gemulon.postgresql.org>
  References: <E1inp9u-0002n2-Ex@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox