git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a65a494) | patch
Avoid assuming that statistics for a parent relation reflect the properties of
Tue, 2 May 2006 04:34:18 +0000 (04:34 +0000)
Tue, 2 May 2006 04:34:18 +0000 (04:34 +0000)
commit 427c6b5b984928972e955f4477c6ba64edbb66cc
Avoid assuming that statistics for a parent relation reflect the properties of
the union of its child relations as well. This might have been a good idea
when it was originally coded, but it's a fatally bad idea when inheritance is
being used for partitioning. It's better to have no stats at all than
completely misleading stats. Per report from Mark Liberman.

The bug arguably exists all the way back, but I've only patched HEAD and 8.1
because we weren't particularly trying to support partitioning before 8.1.

Eventually we ought to look at deriving union statistics instead of just
punting, but for now the drop kick looks good.
src/backend/optimizer/path/allpaths.c diff | blob | blame | history
src/backend/utils/adt/selfuncs.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /