Re: Pointers needed on optimizing slow SQL statements

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Pointers needed on optimizing slow SQL statements
Дата
Msg-id 87zlchlsf6.fsf@hi-media-techno.com
обсуждение исходный текст
Ответ на Re: Pointers needed on optimizing slow SQL statements  (Віталій Тимчишин <tivv00@gmail.com>)
Список pgsql-performance
Віталій Тимчишин <tivv00@gmail.com> writes:

> I'd prefer ALTER VIEW <name> SET ANALYZE=true; or CREATE/DROP ANALYZE <SQL>;
> Also it should be possible to change statistics target for analyzed
> columns.

Yeah, my idea was ALTER VIEW <name> ENABLE ANALYZE; but that's an easy
point to solve if the idea proves helpful.

> Such a statement would allow to analyze multi-table correlations. Note
> that for view planner should be able to use correlation information
> even for queries that do not use view, but may benefit from the
> information.

That sounds like the hard part of it, but maybe our lovely geniuses will
come back and tell: "oh, you can do it this way, easy enough". :)

Regards,
--
dim

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

Предыдущее
От: Віталій Тимчишин
Дата:
Сообщение: Re: Pointers needed on optimizing slow SQL statements
Следующее
От: Shaul Dar
Дата:
Сообщение: Re: Best way to load test a postgresql server