Commit Graph

455 Commits (daea4d8eaee010f41e46bb98cd1b2da2f9fb75d9)

Author SHA1 Message Date
Tom Lane 1bdf124b94 Restore the former RestrictInfo field valid_everywhere (but invert the flag 20 years ago
Tom Lane ddb4015ec0 Fix longstanding bug that would sometimes let the planner generate a bad plan 20 years ago
Bruce Momjian 1dc3498251 Standard pgindent run for 8.1. 21 years ago
Tom Lane 07e6f93d6b Fix oversight in 8.0 modification of RestrictInfo data structures. 21 years ago
Tom Lane e011459029 Make set_function_size_estimates() marginally smarter: per original 21 years ago
Tom Lane 303e089df5 Clean up possibly-uninitialized-variable warnings reported by gcc 4.x. 21 years ago
Tom Lane d7e4fd99e5 Fix bug introduced into indexable_outerrelids() by an ill-considered 21 years ago
Tom Lane 46a0eee300 Tweak nodeBitmapAnd to stop evaluating sub-plan scans if it finds it's 21 years ago
Tom Lane 974e3cf30a cost_agg really ought to charge something per output tuple; else there 21 years ago
Tom Lane 4e5fbb34b3 Change the division of labor between grouping_planner and query_planner 21 years ago
Tom Lane e331404da5 Clean up some very old and crufty code for TID scan planning. Not much 21 years ago
Bruce Momjian a7f49252d2 enable_constraint_exclusion => constraint_exclusion 21 years ago
Tom Lane 5d27bf20b4 Make use of new list primitives list_append_unique and list_concat_unique 21 years ago
Tom Lane a4ca842319 Fix a bunch of bad interactions between partial indexes and the new 21 years ago
Tom Lane d007a95055 Simple constraint exclusion. For now, only child tables of inheritance 21 years ago
Tom Lane cc9bcbc8a4 Improve outer-join-deduction logic to be able to propagate equalities 21 years ago
Tom Lane cc5e80b8d1 Teach planner about some cases where a restriction clause can be 21 years ago
Tom Lane bd6bf50b03 Teach planner to optionally ignore index columns that have an equality 21 years ago
Tom Lane c186c93148 Change the planner to allow indexscan qualification clauses to use 21 years ago
Tom Lane 2f1210629c Separate predicate-testing code out of indxpath.c, making it a module 21 years ago
Tom Lane a87ee007ed Quick hack to allow the outer query's tuple_fraction to be passed down 21 years ago
Tom Lane a31ad27fc5 Simplify the planner's join clause management by storing join clauses 21 years ago
Tom Lane 9a586fe0c5 Nab some low-hanging fruit: replace the planner's base_rel_list and 21 years ago
Tom Lane 9ab4d98168 Remove planner's private fields from Query struct, and put them into 21 years ago
Tom Lane e18e8f8735 Change expandRTE() and ResolveNew() back to taking just the single 21 years ago
Tom Lane 872c1497fc Previous fix for "x FULL JOIN y ON true" failed to handle the case 21 years ago
Tom Lane 278bd0cc22 For some reason access/tupmacs.h has been #including utils/memutils.h, 21 years ago
Tom Lane bedb78d386 Implement sharable row-level locks, and use them for foreign key references 21 years ago
Tom Lane 1fcd4b7a07 While determining the filter clauses for an index scan (either plain 21 years ago
Tom Lane 79a1b00226 Replace slightly klugy create_bitmap_restriction() function with a 21 years ago
Tom Lane 5b05185262 Remove support for OR'd indexscans internal to a single IndexScan plan 21 years ago
Tom Lane e092828241 Teach choose_bitmap_and() to actually be choosy --- that is, try to 21 years ago
Tom Lane bc843d3960 First cut at planner support for bitmap index scans. Lots to do yet, 21 years ago
Tom Lane 14c7fba3f7 Rethink original decision to use AND/OR Expr nodes to represent bitmap 21 years ago
Tom Lane e6f7edb9d5 Install some slightly realistic cost estimation for bitmap index scans. 21 years ago
Tom Lane eb4f58ad40 Don't try to run clauseless index scans on index types that don't support 21 years ago
Tom Lane 4a8c5d0375 Create executor and planner-backend support for decoupled heap and index 21 years ago
Tom Lane addc42c339 Create the planner mechanism for optimizing simple MIN and MAX queries 21 years ago
Tom Lane ad161bcc8a Merge Resdom nodes into TargetEntry nodes to simplify code and save a 21 years ago
Tom Lane 280de290d7 In cost_mergejoin, the early-exit effect should not apply to the 21 years ago
Tom Lane 5db2e83852 Rethink the order of expression preprocessing: eval_const_expressions 21 years ago
Tom Lane bf3dbb5881 First steps towards index scans with heap access decoupled from index 21 years ago
Tom Lane 926e8a00d3 Add a back-link from IndexOptInfo structs to their parent RelOptInfo 21 years ago
Tom Lane febc9a613c Expand the 'special index operator' machinery to handle special cases 21 years ago
Tom Lane 595ed2a855 Make the behavior of HAVING without GROUP BY conform to the SQL spec. 21 years ago
Tom Lane 849074f9ae Revise hash join code so that we can increase the number of batches 21 years ago
Tom Lane 3104a92866 Another go at making pred_test() handle all reasonable combinations 21 years ago
Tom Lane 95871703e3 Adjust OR indexscan logic to not generate redundant condition-free OR 21 years ago
Tom Lane 4e89bae704 Revert the logic for expanding AND/OR conditions in pred_test() to what 21 years ago
Tom Lane 94e4778a31 The result of a FULL or RIGHT join can't be assumed to be sorted by the 21 years ago