Re: Consolidate 'unique array values' logic into a reusable function?

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2019-09-09T23:43:09Z
Lists: pgsql-hackers

Attachments

On Fri, Aug 30, 2019 at 3:34 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> Adding to CF.

Rebased due to bitrot.  Spotted one more place to use this, in
src/backend/utils/adt/txid.c.

-- 
Thomas Munro
https://enterprisedb.com

Commits

  1. Skip memcpy(x, x) in qunique().

  2. Add reusable routine for making arrays unique.