Re: [HACKERS] selectivity calculation for or_clause is wrong ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] selectivity calculation for or_clause is wrong ?
Date
Msg-id 29708.932484718@sss.pgh.pa.us
Whole thread Raw
In response to selectivity calculation for or_clause is wrong ?  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Responses RE: [HACKERS] selectivity calculation for or_clause is wrong ?
List pgsql-hackers
"Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
> Why is valid_or_clause(clausenode) necessary ?

Looks like a waste of cycles to me too.

If the subclauses of an OR could get rearranged during optimization
then this might be a necessary check, but AFAIK they don't.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] Re: [HACKERS] Counting bool flags in a complex query
Next
From: "Ansley, Michael"
Date:
Subject: RE: [HACKERS] psql & query string length