Re: Proposal to introduce a shuffle function to intarray extension

Поиск
Список
Период
Сортировка
От Martin Kalcher
Тема Re: Proposal to introduce a shuffle function to intarray extension
Дата
Msg-id ceb243bc-dc71-6d19-866e-d30d066006bc@aboutsource.net
обсуждение исходный текст
Ответ на Re: Proposal to introduce a shuffle function to intarray extension  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Martin Kalcher
Дата:
Сообщение: Re: Proposal to introduce a shuffle function to intarray extension
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Allowing REINDEX to have an optional name