Commit Graph

1184 Commits (607b2be7bb230ea4c558cb3101794f94de35ab85)

Author SHA1 Message Date
Tom Lane da27c0a1ef Teach tid-scan code to make use of "ctid = ANY (array)" clauses, so that 20 years ago
Tom Lane a66e2c8885 Teach push_nots() how to negate a ScalarArrayOpExpr. In passing, save 20 years ago
Tom Lane 290166f934 Teach planner and executor to handle ScalarArrayOpExpr as an indexable 20 years ago
Bruce Momjian 436a2956d8 Re-run pgindent, fixing a problem where comment lines after a blank 20 years ago
Tom Lane cecb607559 Make SQL arrays support null elements. This commit fixes the core array 20 years ago
Tom Lane ccdcd19672 make_restrictinfo() failed to attach the specified required_relids to 20 years ago
Tom Lane 1bdf124b94 Restore the former RestrictInfo field valid_everywhere (but invert the flag 20 years ago
Tom Lane fb30ac54e6 Thinking further, it seems we had better also copy down resorigtbl/resorigcol 20 years ago
Tom Lane abf293e155 Fix the recently-added code that eliminates unnecessary SubqueryScan nodes 20 years ago
Tom Lane ddb4015ec0 Fix longstanding bug that would sometimes let the planner generate a bad plan 20 years ago
Tom Lane 32fcfcdbd6 Fix oversight in recent changes to enable the 'physical tlist' 20 years ago
Bruce Momjian 1dc3498251 Standard pgindent run for 8.1. 20 years ago
Tom Lane 1e9a6ba5e6 Don't try to remove duplicate OR-subclauses in create_bitmap_subplan and 21 years ago
Tom Lane 07e6f93d6b Fix oversight in 8.0 modification of RestrictInfo data structures. 21 years ago
Tom Lane fa63749d21 Fix oversight in indexscan plan creation. I recently added code to use 21 years ago
Tom Lane e011459029 Make set_function_size_estimates() marginally smarter: per original 21 years ago
Tom Lane 2e1254e7fa Repair planning bug introduced in 7.4: outer-join ON clauses that referenced 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 bc9d4ec9a1 optimize_minmax_aggregates() neglected to check for inherited tables. 21 years ago
Tom Lane e35e6b1c37 Back out prior patch and instead just suppress SubqueryScan elimination 21 years ago
Tom Lane 03728942c2 For non-projecting plan node types such as Limit, set_plan_references 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 5a7d36973a Fix two separate bugs in setrefs.c. set_subqueryscan_references needs 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 dfdf07aab1 Fix up LIMIT/OFFSET planning so that we cope with non-constant LIMIT 21 years ago
Tom Lane 688784f671 Prevent planner from including temp tables of other backends when expanding 21 years ago
Tom Lane 2a4fad1a0e Add NOWAIT option to SELECT FOR UPDATE/SHARE. 21 years ago
Tom Lane 284e4739ef Fix an oversight I introduced on 2003-12-28: find_nots/push_nots should 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 37c443eefd Fix compare_fuzzy_path_costs() to behave a bit more sanely. The original 21 years ago
Tom Lane 59857b46a8 Fix create_unique_plan() so it doesn't generate useless entries in the 21 years ago
Tom Lane 0182951bc8 Fix overenthusiastic optimization of 'x IN (SELECT DISTINCT ...)' and related 21 years ago
Tom Lane ae9a07bf9e Don't try to constant-fold functions returning RECORD. We were never 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 943b396245 Add Oracle-compatible GREATEST and LEAST functions. Pavel Stehule 21 years ago
Tom Lane 1265724ff5 The random selection in function linear() could deliver a value equal to max 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 3b167a4099 If a LIMIT is applied to a UNION ALL query, plan each UNION arm as 21 years ago
Tom Lane 39cee73889 Revise searching of subplan target lists to use something more efficient 21 years ago
Tom Lane a31ad27fc5 Simplify the planner's join clause management by storing join clauses 21 years ago