Re: [GENERAL] how to get accurate values in pg_statistic
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [GENERAL] how to get accurate values in pg_statistic |
| Дата | |
| Msg-id | 16527.1062795349@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [GENERAL] how to get accurate values in pg_statistic (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Список | pgsql-performance |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> We do have:
> #geqo_random_seed = -1 # -1 = use variable seed
> that lets you force a specific random seed for testing purposes. I
> wonder if that could be extended to control VACUUM radomization too.
> Right now, it just controls GEQO and in fact gets reset on every
> optimizer run.
Actually, just the other day I was thinking we should take that out.
Since there is only one random number generator in the C library,
GEQO is messing with everyone else's state every time it decides to do
an srandom(). And there is certainly no need to do an explicit srandom
with a "random" seed every time through the optimizer, which is the
code's default behavior at the moment. That just decreases the
randomness AFAICS, compared to letting the established sequence run.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера