Wrong rows count in EXPLAIN

Поиск
Список
Период
Сортировка
От Пантюшин Александр Иванович
Тема Wrong rows count in EXPLAIN
Дата
Msg-id ff929e5835d84b7daa5bca27e9b66323@gaz-is.ru
обсуждение исходный текст
Ответы Re: Wrong rows count in EXPLAIN  (Andrey Borodin <x4mmm@yandex-team.ru>)
Re: Wrong rows count in EXPLAIN  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

When I create a new table, and then I evaluate the execution of the SELECT query, I see a strange rows count in EXPLAIN
CREATE TABLE test1(f INTEGER PRIMARY KEY NOT NULL);
ANALYZE test1;
EXPLAIN SELECT * FROM test1;
                       QUERY PLAN
---------------------------------------------------------
 Seq Scan on test1  (cost=0.00..35.50 rows=2550 width=4)
(1 row)

Table is empty but rows=2550. Seem like it was calculated from some default values.
Is this normal behavior or a bug? Can it lead to a poor choice of the plan of a query in general?

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

Предыдущее
От: vignesh C
Дата:
Сообщение: Re: Perform streaming logical transactions by background workers and parallel apply
Следующее
От: Andrey Borodin
Дата:
Сообщение: Re: An attempt to avoid locally-committed-but-not-replicated-to-standby-transactions in synchronous replication