Re: analyze foreign tables

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: analyze foreign tables
Дата
Msg-id 615ccd4a1de716c229cf125260896051b1989608.camel@cybertec.at
обсуждение исходный текст
Ответ на analyze foreign tables  (richard coleman <rcoleman.ascentgl@gmail.com>)
Ответы Re: analyze foreign tables  (richard coleman <rcoleman.ascentgl@gmail.com>)
Re: analyze foreign tables  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-admin
On Tue, 2023-08-01 at 09:47 -0400, richard coleman wrote:
> In PostgreSQL foreign tables are not automatically analyzed and analyze must be
> specifically called on each table.  In the case of sharing tables between PostgreSQL
> clusters, there is the use_remote_estimate foreign server option.
>
> In some of our multi terabyte databases, manually running analyze on all of the
> foreign tables can take more than a day.  This is per database containing the
> foreign schema.  Since we have certain large schema that we have centrally located
> and share to all of our other database clusters, this really adds up.

I just saw that PostgreSQL v16 uses remote sampling for ANALYZE on foreign tables.
This is governed by the option "analyze_sampling" on the foreign table or the foreign
server, and the default value "auto" should be just what you need.

Yours,
Laurenz Albe



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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Anyway to index array with other columns
Следующее
От: richard coleman
Дата:
Сообщение: Re: analyze foreign tables