Re: Pointers needed on optimizing slow SQL statements - Mailing list pgsql-performance

From Dimitri Fontaine
Subject Re: Pointers needed on optimizing slow SQL statements
Date
Msg-id 87zlchlsf6.fsf@hi-media-techno.com
Whole thread Raw
In response to Re: Pointers needed on optimizing slow SQL statements  (Віталій Тимчишин <tivv00@gmail.com>)
List 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 by date:

Previous
From: Віталій Тимчишин
Date:
Subject: Re: Pointers needed on optimizing slow SQL statements
Next
From: Shaul Dar
Date:
Subject: Re: Best way to load test a postgresql server