| От | Csaba Nagy |
|---|---|
| Тема | Re: Obtaining random rows from a result set |
| Дата | |
| Msg-id | 1188567947.5270.14.camel@PCD12478.muc.ecircle.de обсуждение исходный текст |
| Ответ на | Obtaining random rows from a result set (Alban Hertroys <alban@magproductions.nl>) |
| Список | pgsql-general |
> Dear Santa, > > I'd like my database to have functionality analogue to how LIMIT works, > but for other - non-sequential - algorithms. There was some discussion before to possibly reuse the algorithm ANALYZE is using for sampling some given percentage of the table data and provide this for some kind of "SELECT SAMPLE x% " style of functionality. This would be the fastest you can get for a reasonably big sample so it can be statistically significant, but not repeatable. I'm not sure if this is the same what you were asking for though, I would like something like this for statistical stuff, not for randomly selecting rows. Cheers, Csaba.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера