Commit Graph

150 Commits (b9e8ffcd5d1a3d45b2f697ea944931f56367c86b)

Author SHA1 Message Date
Tom Lane 21591967bc Turns out new IN implementation has got some problems in an UPDATE or 23 years ago
Tom Lane 147fbf9c6e Repair bug reported by Laurent Perez: bad plan generated when UPDATE or 23 years ago
Tom Lane 0d7abfe7cf Marginal tweaks to make sure that roundoff error won't cause us to make 23 years ago
Tom Lane 056467ec6b Teach planner how to propagate pathkeys from sub-SELECTs in FROM up to 23 years ago
Tom Lane b5956a2f22 Detect case where an outer join can be reduced to a plain inner join 23 years ago
Tom Lane 145014f811 Make further use of new bitmapset code: executor's chgParam, extParam, 23 years ago
Tom Lane 2d1f940542 Minor code cleanup: remove no-longer-useful pull_subplans() function, 23 years ago
Tom Lane 4cff59d8d5 Tweak planner and executor to avoid doing ExecProject() in table scan 23 years ago
Tom Lane 9f5f212475 Allow the planner to collapse explicit inner JOINs together, rather than 23 years ago
Tom Lane bdfbfde1b1 IN clauses appearing at top level of WHERE can now be handled as joins. 23 years ago
Tom Lane b19adc1aae Fix parse_agg.c to detect ungrouped Vars in sub-SELECTs; remove code 23 years ago
Tom Lane de97072e3c Allow merge and hash joins to occur on arbitrary expressions (anything not 23 years ago
Tom Lane 56e1aab286 Reconsider mechanism for marking sub-selects that are at top level of 23 years ago
Tom Lane 8ac6d952cf Cause planner to account for evaluation costs in targetlists and 23 years ago
Tom Lane 6d6c9fd9a4 Cause planner to include costs of InitPlans in startup cost of parent 23 years ago
Tom Lane 2d8d66628a Clean up plantree representation of SubPlan-s --- SubLink does not appear 23 years ago
Tom Lane a0bf885f9e Phase 2 of read-only-plans project: restructure expression-tree nodes 23 years ago
Tom Lane 993b145d7f Avoid pulling up sublinks from a subselect's targetlist. Works around 23 years ago
Tom Lane f68f11928d Tighten selection of equality and ordering operators for grouping 23 years ago
Tom Lane ea0b5c8569 Use Params, rather than run-time-modified Const nodes, to handle 23 years ago
Tom Lane 6c1d4662af Finish implementation of hashed aggregation. Add enable_hashagg GUC 23 years ago
Tom Lane b60be3f2f8 Add an at-least-marginally-plausible method of estimating the number 23 years ago
Tom Lane 89caf56b86 Fix planning bug introduced in recent code reorganization for hashed 23 years ago
Tom Lane 2103b7baa2 Phase 2 of hashed-aggregation project. nodeAgg.c now knows how to do 23 years ago
Tom Lane f6dba10e62 First phase of implementing hash-based grouping/aggregation. An AGG plan 23 years ago
Tom Lane 83fd58dff0 Add missing correction of sublevelsup when pulling up a subquery. 23 years ago
Bruce Momjian e50f52a074 pgindent run. 23 years ago
Bruce Momjian 81dfa2ce43 backend where a statically sized buffer is written to. Most of these 23 years ago
Bruce Momjian d84fe82230 Update copyright to 2002. 24 years ago
Bruce Momjian 0dbfea39f3 Remove KSQO from GUC and move file to _deadcode. 24 years ago
Tom Lane f67a931aa4 Make WHERE conditions pulled up from subqueries be executed before outer 24 years ago
Tom Lane a5b370943e Teach query_tree_walker, query_tree_mutator, and SS_finalize_plan to 24 years ago
Tom Lane 51fd22abdd Change set_plan_references and join_references to take an rtable List 24 years ago
Tom Lane 3389a110d4 Get rid of long-since-vestigial Iter node type, in favor of adding a 24 years ago
Tom Lane 6c59886942 Second try at fixing join alias variables. Instead of attaching miscellaneous 24 years ago
Tom Lane 6eeb95f0f5 Restructure representation of join alias variables. An explicit JOIN 24 years ago
Tom Lane 63cc56de54 Suppress subquery pullup and pushdown when the subquery has any 24 years ago
Bruce Momjian ea08e6cd55 New pgindent run with fixes suggested by Tom. Patch manually reviewed, 24 years ago
Tom Lane 96ca8ffebc Fix problems with subselects used in GROUP BY expressions, per gripe 24 years ago
Bruce Momjian 6783b2372e Another pgindent run. Fixes enum indenting, and improves #endif 24 years ago
Bruce Momjian b81844b173 pgindent run on all C files. Java run to follow. initdb/regression 24 years ago
Tom Lane 6254465d06 Extend code that deduces implied equality clauses to detect whether a 24 years ago
Tom Lane 7c579fa12d Further work on making use of new statistics in planner. Adjust APIs 25 years ago
Tom Lane be03eb25f3 Modify optimizer data structures so that IndexOptInfo lists built for 25 years ago
Tom Lane f905d65ee3 Rewrite of planner statistics-gathering code. ANALYZE is now available as 25 years ago
Tom Lane e2004dfc69 Suppress pull-up of subqueries that are in the nullable side of an outer 25 years ago
Tom Lane d5096af2c4 Make the world safe for passing whole rows of views to functions. This 25 years ago
Tom Lane 2ef99ee708 Planner wasn't correctly handling adjustment of tuple_fraction for the 25 years ago
Bruce Momjian 9e1552607a pgindent run. Make it all clean. 25 years ago
Tom Lane f44639e1bf Don't crash if subquery appears multiple times in jointree. This should 25 years ago