Re: How does the planner determine plan_rows ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How does the planner determine plan_rows ?
Дата
Msg-id 7958.1547179311@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How does the planner determine plan_rows ?  (Donald Dong <xdong@csumb.edu>)
Ответы Re: How does the planner determine plan_rows ?  (Donald Dong <xdong@csumb.edu>)
Список pgsql-hackers
Donald Dong <xdong@csumb.edu> writes:
> I created some empty tables and run ` EXPLAIN ANALYZE` on `SELECT * `. I found
> the results have different row numbers, but the tables are all empty.

This isn't a terribly interesting case, since you've neither loaded
any data nor vacuumed/analyzed the table, but ...

> I found this behavior unexpected. I'm still trying to find out how/where the planner
> determines the plan_rows.

... estimate_rel_size() in plancat.c is where to look to find out
about the planner's default estimates when it's lacking hard data.

            regards, tom lane


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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: speeding up planning with partitions
Следующее
От: Chapman Flack
Дата:
Сообщение: Re: Ryu floating point output patch