| From: | Martin Kalcher <martin(dot)kalcher(at)aboutsource(dot)net> |
|---|---|
| To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
| Cc: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Proposal to introduce a shuffle function to intarray extension |
| Date: | 2022-07-17 09:54:22 |
| Message-ID: | ceb243bc-dc71-6d19-866e-d30d066006bc@aboutsource.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
Am 17.07.22 um 05:32 schrieb David G. Johnston:
>
> +SELECT sample('{1,2,3,4,5,6,7,8,9,10,11,12}', 6) !=
> sample('{1,2,3,4,5,6,7,8,9,10,11,12}', 6);
> + ?column?
> +----------
> + t
> +(1 row)
> +
>
> While small, there is a non-zero chance for both samples to be equal. This
> test should probably just go, I don't see what it tests that isn't covered
> by other tests or even trivial usage.
>
Hey David,
you are right. There is a small chance for this test to fail. I wanted
to test, that two invocations produce different results (after all the
main feature of the function). But it can probably go.
Martin
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Martin Kalcher | 2022-07-17 16:15:51 | Re: Proposal to introduce a shuffle function to intarray extension |
| Previous Message | Martin Kalcher | 2022-07-17 09:38:55 | Re: Proposal to introduce a shuffle function to intarray extension |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Simon Riggs | 2022-07-17 09:58:26 | Re: Allowing REINDEX to have an optional name |
| Previous Message | Martin Kalcher | 2022-07-17 09:38:55 | Re: Proposal to introduce a shuffle function to intarray extension |