Re: Pointers needed on optimizing slow SQL statements

From: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
To: Віталій Тимчишин <tivv00(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Pointers needed on optimizing slow SQL statements
Date: 2009-06-09 08:31:25
Message-ID: 87zlchlsf6.fsf@hi-media-techno.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Віталій Тимчишин <tivv00(at)gmail(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Shaul Dar 2009-06-09 12:50:10 Re: Best way to load test a postgresql server
Previous Message Віталій Тимчишин 2009-06-09 06:58:51 Re: Pointers needed on optimizing slow SQL statements