Re: cross column correlation revisted - Mailing list pgsql-hackers

From Tom Lane
Subject Re: cross column correlation revisted
Date
Msg-id 4355.1279116086@sss.pgh.pa.us
Whole thread Raw
In response to Re: cross column correlation revisted  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: cross column correlation revisted
List pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> On 14/07/10 13:12, PostgreSQL - Hans-J�rgen Sch�nig wrote:
>> maybe somehow like this ...
>> ALTER TABLE x SET CORRELATION STATISTICS FOR (id = id2 AND id3=id4)

> +1 is my general feeling, it's good if you can tell the system to 
> collect additional statistics where needed.

The previous discussions about this went in the direction of
"automatically collect stats if there is an index on that combination of
columns".  Do we really need a command?

> However, the problem is how to represent and store the 
> cross-correlation.

Yes, whatever the triggering mechanism is for collecting cross-column
stats, actually doing something useful is the hard part.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: patch: preload dictionary new version
Next
From: Joshua Tolley
Date:
Subject: Re: cross column correlation revisted