Re: TABLESAMPLE doesn't actually satisfy the SQL spec, does it?
В списке pgsql-hackers по дате отправления:
| От | Petr Jelinek |
|---|---|
| Тема | Re: TABLESAMPLE doesn't actually satisfy the SQL spec, does it? |
| Дата | |
| Msg-id | 55A7B6AA.20008@2ndquadrant.com обсуждение исходный текст |
| Ответ на | TABLESAMPLE doesn't actually satisfy the SQL spec, does it? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: TABLESAMPLE doesn't actually satisfy the SQL spec, does it?
|
| Список | pgsql-hackers |
On 2015-07-12 18:02, Tom Lane wrote: > > A possible way around this problem is to redefine the sampling rule so > that it is not history-dependent but depends only on the tuple TIDs. > For instance, one could hash the TID of a candidate tuple, xor that with > a hash of the seed being used for the current query, and then select the > tuple if (hash/MAXINT) < P. > That would work for bernoulli for physical tuples, yes. Only thing that worries me is future extensibility for data sources that only provide virtual tuples. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера