Re: pgbench - add pseudo-random permutation function

David Steele <david@pgmasters.net>

From: David Steele <david@pgmasters.net>
To: Fabien COELHO <coelho@cri.ensmp.fr>, Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, Thomas Munro <thomas.munro@gmail.com>, Hironobu SUZUKI <hironobu@interdb.jp>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-04-01T16:03:35Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. pgbench: Function to generate random permutations.

  2. Add basic support for using the POPCNT and SSE4.2s LZCNT opcodes

  3. Further improve code for probing the availability of ARM CRC instructions.

Hi Fabien,

On 2/1/20 5:12 AM, Fabien COELHO wrote:
> 
> Attached is an attempt at improving things. I have added a explicit note 
> and hijacked an existing example to better illustrate the purpose of the 
> function.

This patch does not build on Linux due to some unused functions and 
variables: http://cfbot.cputube.org/patch_27_1712.log

The CF entry has been updated to Waiting on Author.

A few committers have expressed doubts about whether this patch is 
needed and it doesn't make sense to keep moving it from CF to CF.

I'm planning to mark this patch RwF on April 8 and I suggest you 
resubmit if you are able to get some consensus.

Regards,
-- 
-David
david@pgmasters.net