Re: Wrong cost estimation for foreign tables join with use_remote_estimate disabled

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wrong cost estimation for foreign tables join with use_remote_estimate disabled
Дата
Msg-id 18984.1529600925@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Wrong cost estimation for foreign tables join withuse_remote_estimate disabled  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Ответы Re: Wrong cost estimation for foreign tables join withuse_remote_estimate disabled  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Список pgsql-hackers
Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes:
> The following very simple test reduce the problem with wrong cost 
> estimation:
> create foreign table t1_fdw(x integer, y integer) server pg_fdw options 
> (table_name 't1', use_remote_estimate 'false');
> create foreign table t2_fdw(x integer) server pg_fdw options (table_name 
> 't2', use_remote_estimate 'false');

> It is possible to force Postgres to use correct plan by setting 
> "fdw_startup_cost" to some very large value (100000000 for example).
> ...
> Also correct plan is used when use_remote_estimate is true.

If you are unhappy about the results with use_remote_estimate off, don't
run it that way.  The optimizer does not have a crystal ball.

            regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Fast default stuff versus pg_upgrade
Следующее
От: Nico Williams
Дата:
Сообщение: Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)