Re: Wording in TABLESAMPLE documentation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wording in TABLESAMPLE documentation
Дата
Msg-id 7639.1471024494@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Wording in TABLESAMPLE documentation  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Wording in TABLESAMPLE documentation  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-docs
Simon Riggs <simon@2ndquadrant.com> writes:
> On 12 August 2016 at 16:23, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I think "global" might have implications we don't want.  How about
>> adding ", based on a system-generated seed"?

> What I was trying to express was that

> SELECT setseed(dp);
> SELECT * FROM foo TABLESAMPLE ...;
> SELECT * FROM foo TABLESAMPLE ...;
> SELECT * FROM foo TABLESAMPLE ...;

> would yield a repeatable set of samples, similarly repeatable but not
> same samples as

> SELECT * FROM foo TABLESAMPLE ... REPEATABLE;
> SELECT * FROM foo TABLESAMPLE ... REPEATABLE;
> SELECT * FROM foo TABLESAMPLE ... REPEATABLE;

But that's *wrong*.  Not all tablesample methods make any such guarantee.
In fact, neither of our contrib methods do.  Only if you use REPEATABLE
(and the method allows it) is there any promise at all about repeatability.

            regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Wording in TABLESAMPLE documentation
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Wording in TABLESAMPLE documentation