[PATCH] Introduce array_shuffle() and array_sample() - Mailing list pgsql-hackers

From Martin Kalcher
Subject [PATCH] Introduce array_shuffle() and array_sample()
Date
Msg-id 1708d95a-629e-5ac5-deab-d20a8d0b2b0e@aboutsource.net
Whole thread Raw
In response to Re: Proposal to introduce a shuffle function to intarray extension  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCH] Introduce array_shuffle() and array_sample()
Re: [PATCH] Introduce array_shuffle() and array_sample()
List pgsql-hackers
Thanks for all your feedback and help. I got a patch that i consider 
ready for review. It introduces two new functions:

   array_shuffle(anyarray) -> anyarray
   array_sample(anyarray, integer) -> anyarray

array_shuffle() shuffles an array (obviously). array_sample() picks n 
random elements from an array.

Is someone interested in looking at it? What are the next steps?

Martin
Attachment

pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: Commitfest Update
Next
From: Jacob Champion
Date:
Subject: Re: Commitfest Update