aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gin/ginarrayproc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-05-02 04:34:18 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-05-02 04:34:18 +0000
commit427c6b5b984928972e955f4477c6ba64edbb66cc (patch)
tree7db5950589106f9a5ad6b1c83b5d48796c9b646d /src/backend/access/gin/ginarrayproc.c
parenta65a49429f1a6722a6be4a9784b4e08fab8ca380 (diff)
downloadpostgresql-427c6b5b984928972e955f4477c6ba64edbb66cc.tar.gz
postgresql-427c6b5b984928972e955f4477c6ba64edbb66cc.zip
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.
Diffstat (limited to 'src/backend/access/gin/ginarrayproc.c')
0 files changed, 0 insertions, 0 deletions