Commit Graph

56 Commits (a67c75f8258742945f4f3703126a1222adeeb85b)

Author SHA1 Message Date
Tom Lane 6478896675 Teach hash_ok_operator() that record_eq is only sometimes hashable. 4 years ago
Tom Lane e8638d78a2 Fix planner error with multiple copies of an AlternativeSubPlan. 5 years ago
Peter Eisentraut c06d6aa4c3 Clean up ancient test style 6 years ago
Tom Lane 41efb83408 Move resolution of AlternativeSubPlan choices to the planner. 6 years ago
Tom Lane 1e7629d2c9 Be more careful about the shape of hashable subplan clauses. 6 years ago
Tom Lane a742ecf9c6 Cope with lateral references in the quals of a subquery RTE. 6 years ago
Tom Lane 58c47ccfff Correctly re-use hash tables in buildSubPlanHash(). 6 years ago
Tom Lane 41c6f9db25 Repair more failures with SubPlans in multi-row VALUES lists. 6 years ago
Tom Lane b925a00f4e Fix "force_parallel_mode = regress" to work with ANALYZE + VERBOSE. 7 years ago
Tom Lane 4766dce0dd Fix choice of comparison operators for cross-type hashed subplans. 7 years ago
Tom Lane 9476131278 Prevent inlining of multiply-referenced CTEs with outer recursive refs. 7 years ago
Peter Eisentraut 5e1963fb76 Collations with nondeterministic comparison 7 years ago
Tom Lane 3396138a6d Check we don't misoptimize a NOT IN where the subquery returns no rows. 7 years ago
Tom Lane 608b167f9f Allow user control of CTE materialization, and change the default behavior. 7 years ago
Tom Lane a391ff3c3d Build out the planner support function infrastructure. 7 years ago
Andrew Gierth 520acab171 Set scan direction appropriately for SubPlans (bug #15336) 8 years ago
Andres Freund 4f63e85eb1 Add COSTS off to two EXPLAIN using tests. 8 years ago
Tom Lane 9b63c13f0a Repair failure with SubPlans in multi-row VALUES lists. 9 years ago
Tom Lane 896eb5efbd In the planner, delete joinaliasvars lists after we're done with them. 9 years ago
Robert Haas bf11e7ee2e Propagate sort instrumentation from workers back to leader. 9 years ago
Tom Lane 1177ab1dab Make new regression test case parallel-safe, and improve its output. 9 years ago
Robert Haas 1f6d515a67 Push limit through subqueries to underlying sort, where possible. 9 years ago
Tom Lane 555494d1bc Fix placement of initPlans when forcibly materializing a subplan. 9 years ago
Tom Lane 1e7c4bb004 Change unknown-type literals to type text in SELECT and RETURNING lists. 9 years ago
Tom Lane 72daabc7a3 Disallow pushing volatile quals past set-returning functions. 10 years ago
Andres Freund 168d5805e4 Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE. 11 years ago
Tom Lane b62f94c603 Allow simplification of EXISTS() subqueries containing LIMIT. 12 years ago
Tom Lane d685814835 Fix bug with whole-row references to append subplans. 12 years ago
Tom Lane 9e2f2d7a05 Don't assume a subquery's output is unique if there's a SRF in its tlist. 12 years ago
Tom Lane 1147035203 Disallow pushing volatile qual expressions down into DISTINCT subqueries. 12 years ago
Tom Lane 9ec6199d18 Fix possible crash with nested SubLinks. 13 years ago
Tom Lane 7ab321404c Fix crash in assign_collations_walker for EXISTS with empty SELECT list. 13 years ago
Tom Lane b97ee66cc1 Make contain_volatile_functions/contain_mutable_functions look into SubLinks. 13 years ago
Tom Lane 670a6c7a22 Fix grammar for subscripting or field selection from a sub-SELECT result. 14 years ago
Tom Lane 4816d2ea32 Fix cross-type case in partial row matching for hashed subplans. 14 years ago
Tom Lane 8e617e29aa Fix whole-row Var evaluation to cope with resjunk columns (again). 14 years ago
Peter Eisentraut 21f1e15aaf Unify spelling of "canceled", "canceling", "cancellation" 15 years ago
Tom Lane cd1f0d04bf Fix thinko in previous patch for optimizing EXISTS-within-EXISTS. 15 years ago
Peter Eisentraut fc946c39ae Remove useless whitespace at end of lines 16 years ago
Tom Lane 133924e13e Fix potential failure when hashing the output of a subplan that produces 16 years ago
Tom Lane d4d32eefdf Fix "cannot handle unplanned sub-select" error that can occur when a 16 years ago
Tom Lane f685cbbac8 Fix mishandling of whole-row Vars referencing a view or sub-select. 16 years ago
Tom Lane 4886dc92e0 Fix set_subquery_pathlist() to copy the RTE's subquery before it gets mangled 17 years ago
Tom Lane 772a6d45ef Fix mis-calculation of extParam/allParam sets for plan nodes, as seen in 18 years ago
Tom Lane ff673f558a Fix convert_IN_to_join to properly handle the case where the subselect's 18 years ago
Tom Lane d514ea3fda Fix an old thinko in SS_make_initplan_from_plan, which is used when optimizing 19 years ago
Tom Lane 31edbadf4a Downgrade implicit casts to text to be assignment-only, except for the ones 19 years ago
Tom Lane 19ff959bff Fix problems with rewriter failing to set Query.hasSubLinks when inserting 21 years ago
Tom Lane 0182951bc8 Fix overenthusiastic optimization of 'x IN (SELECT DISTINCT ...)' and related 21 years ago
Tom Lane 4171bb869f Detect overflow in integer arithmetic operators (integer, smallint, and 22 years ago