Commit Graph

1184 Commits (607b2be7bb230ea4c558cb3101794f94de35ab85)

Author SHA1 Message Date
Tom Lane aa282d4446 Infrastructure for deducing Param types from context, in the same way 23 years ago
Tom Lane 982430f846 Put back encoding-conversion step in processing of incoming queries; 23 years ago
Tom Lane 5f677af2da Adjust subquery qual pushdown rules so that we can push down a qual 23 years ago
Tom Lane 730840c9b6 First phase of work on array improvements. ARRAY[x,y,z] constructor 23 years ago
Tom Lane efeffae245 Tweak selectivity and related routines to cope with domains. Per report 23 years ago
Tom Lane 9323cb0aab Department of second thoughts: probably shouldn't use nth() to get the 23 years ago
Tom Lane 05f916e6ad Adjust subquery qual pushdown rules to be more forgiving: if a qual 23 years ago
Tom Lane 7931bfa764 Make eval_const_expressions simplify FieldSelect from a whole-row Var 23 years ago
Tom Lane 6c4996fa6b GROUP BY got confused if there were multiple equal() GROUP BY items. 23 years ago
Tom Lane aa83bc04e0 Restructure parsetree representation of DECLARE CURSOR: now it's a 23 years ago
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 30a695d356 Be smart about outer-join qualifications that mention only one side of 23 years ago
Tom Lane 72933a92c7 Back off previous patch to skip projection step in scan plan nodes, 23 years ago
Tom Lane 51972a9d5d COALESCE() and NULLIF() are now first-class expressions, not macros 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 8a4fdce9f2 Fix thinko in new logic about pushing down non-nullability constraints: 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 39b7ec3309 Create a distinction between Lists of integers and Lists of OIDs, to get 23 years ago
Tom Lane 3646ab58b4 Remove bogus comment (too freely copied & pasted). 23 years ago
Tom Lane 145014f811 Make further use of new bitmapset code: executor's chgParam, extParam, 23 years ago
Tom Lane c15a4c2aef Replace planner's representation of relation sets, per pghackers discussion. 23 years ago
Tom Lane 00f1a41ab2 Make flatten_join_alias_vars() do the right thing when expanding an alias 23 years ago
Tom Lane 2d1f940542 Minor code cleanup: remove no-longer-useful pull_subplans() function, 23 years ago
Tom Lane 3752e85bad Determine the set of constraints applied to a domain at executor 23 years ago
Tom Lane 4cff59d8d5 Tweak planner and executor to avoid doing ExecProject() in table scan 23 years ago
Tom Lane 2e46b762eb Extend join-selectivity API (oprjoin interface) so that join type is 23 years ago
Tom Lane 70fba70430 Upgrade cost estimation for joins, per discussion with Bradley Baetz. 23 years ago
Tom Lane 9f5f212475 Allow the planner to collapse explicit inner JOINs together, rather than 23 years ago
Tom Lane f5e83662d0 Modify planner's implied-equality-deduction code so that when a set 23 years ago
Tom Lane c4d0ff32e9 Make estimation of mergejoin scan selectivities more robust, per recent 23 years ago
Tom Lane e2114817c7 Implement choice between hash-based and sort-based grouping for doing 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 a4d82dd4b4 Adjust API of expression_tree_mutator and query_tree_mutator to 23 years ago
Tom Lane 136828c699 Ooops, didn't cut-and-paste quite enough code from ResolveNew; 23 years ago
Tom Lane cde9f852e0 Now that switch_outer processing no longer relies on being run after 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 d4ce5a4f4c Revise cost_qual_eval() to compute both startup (one-time) and per-tuple 23 years ago
Tom Lane 19b886332a First cut at implementing IN (and NOT IN) via hashtables. There is 23 years ago
Tom Lane e69785debf Further tweaking of parsetree & plantree representation of SubLinks. 23 years ago
Tom Lane 6bc61fc046 Adjust parser so that 'x NOT IN (subselect)' is converted to 23 years ago
Tom Lane a60f9db508 Fix inherited UPDATE for cases where child column numbering doesn't 23 years ago
Tom Lane a0fa0117a5 Better solution to integer overflow problem in hash batch-number 23 years ago
Tom Lane f772e6cbf7 Clamp the output of estimate_hash_bucketsize() to a sane range; 23 years ago
Tom Lane 6d6c9fd9a4 Cause planner to include costs of InitPlans in startup cost of parent 23 years ago
Tom Lane e932a724a4 To suppress memory leakage in long-lived Lists, lremove() should pfree 23 years ago