aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsquery_gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-07-06 18:26:39 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-07-06 18:26:39 +0000
commitc75235949a52f7ef69ea0f0fd48d5f1d85c35ccc (patch)
tree7c2495557c22dc06f1c0166187fd167741823408 /src/backend/utils/adt/tsquery_gist.c
parentd0f6725090e8c65434666ec8d848b19ac6024292 (diff)
downloadpostgresql-c75235949a52f7ef69ea0f0fd48d5f1d85c35ccc.tar.gz
postgresql-c75235949a52f7ef69ea0f0fd48d5f1d85c35ccc.zip
Fix set_append_rel_pathlist() to deal intelligently with cases where
substituting a child rel's output expressions into the appendrel's restriction clauses yields a pseudoconstant restriction. We might be able to skip scanning that child rel entirely (if we get constant FALSE), or generate a one-time filter. 8.3 more or less accidentally generated plans that weren't completely stupid in these cases, but that was only because an extra recursive level of subquery_planner() always occurred and allowed const-simplification to happen. 8.4's ability to pull up appendrel members with non-Var outputs exposes the fact that we need to work harder here. Per gripe from Sergey Burladyan.
Diffstat (limited to 'src/backend/utils/adt/tsquery_gist.c')
0 files changed, 0 insertions, 0 deletions