Re: [HACKERS] selectivity calculation for or_clause is wrong ?

Started by Tom Laneover 26 years ago1 messageshackers
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

"Hiroshi Inoue" <Inoue@tpf.co.jp> writes:

Why is valid_or_clause(clausenode) necessary ?

Looks like a waste of cycles to me too.

It's not only a waste of cycles.
[ snip ]
rows of each plan 261 : 773 : 1274 not = 1 : 2 : 3.
It's nearly = 1 :3 :5.
elements of or_clause except its first element are evaluated
twice and the results are accumlated.

BTW, I fixed this...

regards, tom lane