aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-01-11 17:00:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-01-11 17:00:45 +0000
commitdf62977d0080e9e437c74f456d96318e8e0a56ee (patch)
tree6d387b442bf8a420ceb86413eb10aca9a0082d82 /src/backend/utils/adt/xml.c
parentf3e3f2e1588fcfc990d0871502902dc0f01b0416 (diff)
downloadpostgresql-df62977d0080e9e437c74f456d96318e8e0a56ee.tar.gz
postgresql-df62977d0080e9e437c74f456d96318e8e0a56ee.zip
Fix an old error in clause_selectivity: the default selectivity estimate
for unhandled clause types ought to be 0.5, not 1.0. I fear I introduced this silliness due to misreading the intent of the very-poorly-structured code that was there when we inherited the file from Berkeley. The lack of sanity in this behavior was exposed by an example from Sim Zacks. (Arguably this is a bug fix and should be back-patched, but I'm a bit hesitant to introduce a possible planner behavior change in the back branches; it might detune queries that worked acceptably in the past.) While at it, make estimation for DistinctExpr do something marginally realistic, rather than just defaulting.
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions