Commit Graph

383 Commits (fd416db406f9efdbbdbd7b63ea4f9ccf47eec8b3)

Author SHA1 Message Date
Tom Lane 0ada559187 Do some minor code refactoring in preparation for changing the APIs of 17 years ago
Tom Lane 8dcf18414b Fix cost_nestloop and cost_hashjoin to model the behavior of semi and anti 17 years ago
Tom Lane c59d8dd44d Improve pull_up_subqueries logic so that it doesn't insert unnecessary 17 years ago
Tom Lane 1d97c19a0f Fix estimate_num_groups() to not fail on PlaceHolderVars, per report from 17 years ago
Tom Lane d7a6a04dc7 Fix planner to restore its previous level of intelligence about pushing 17 years ago
Tom Lane e549722a8b Get rid of the rather fuzzily defined FlattenedSubLink node type in favor of 17 years ago
Tom Lane d04db37072 Arrange for function default arguments to be processed properly in expressions 17 years ago
Tom Lane 445ce15702 Create a third option named "partition" for constraint_exclusion, and make it 17 years ago
Bruce Momjian 511db38ace Update copyright for 2009. 17 years ago
Tom Lane 8e8854daa2 Add some basic support for window frame clauses to the window-functions 17 years ago
Tom Lane 95b07bc7f5 Support window functions a la SQL:2008. 17 years ago
Tom Lane 0436679969 Get rid of adjust_appendrel_attr_needed(), which has been broken ever since 17 years ago
Tom Lane e6ae3b5dbf Add a concept of "placeholder" variables to the planner. These are variables 17 years ago
Tom Lane 76e6602417 Improve the recently-added code for inlining set-returning functions so that 17 years ago
Tom Lane 0d115dde82 Extend CTE patch to support recursive UNION (ie, without ALL). The 17 years ago
Tom Lane 44d5be0e53 Implement SQL-standard WITH clauses, including WITH RECURSIVE. 17 years ago
Tom Lane ee33b95d9c Improve the plan cache invalidation mechanism to make it invalidate plans 18 years ago
Tom Lane b153c09209 Add a bunch of new error location reports to parse-analysis error messages. 18 years ago
Tom Lane e5536e77a5 Move exprType(), exprTypmod(), expression_tree_walker(), and related routines 18 years ago
Tom Lane bd3daddaf2 Arrange to convert EXISTS subqueries that are equivalent to hashable IN 18 years ago
Tom Lane 19e34b6239 Improve sublink pullup code to handle ANY/EXISTS sublinks that are at top 18 years ago
Tom Lane d4af2a6481 Clean up the loose ends in selectivity estimation left by my patch for semi 18 years ago
Tom Lane e006a24ad1 Implement SEMI and ANTI joins in the planner and executor. (Semijoins replace 18 years ago
Tom Lane af95d7aa63 Improve INTERSECT/EXCEPT hashing by realizing that we don't need to make any 18 years ago
Tom Lane 368df30427 Support hashing for duplicate-elimination in INTERSECT and EXCEPT queries. 18 years ago
Tom Lane 2d1d96b1ce Teach the system how to use hashing for UNION. (INTERSECT/EXCEPT will follow, 18 years ago
Tom Lane 9511304752 Rearrange the querytree representation of ORDER BY/GROUP BY/DISTINCT items 18 years ago
Tom Lane eaf1b5d348 Tighten up SS_finalize_plan's computation of valid_params to exclude Params of 18 years ago
Alvaro Herrera a3540b0f65 Improve our #include situation by moving pointer types away from the 18 years ago
Tom Lane db147b3483 Allow the planner's estimate of the fraction of a cursor's rows that will be 18 years ago
Tom Lane 25e46a504b Fix a couple of oversights associated with the "physical tlist" optimization: 18 years ago
Tom Lane 6b73d7e567 Fix an oversight I made in a cleanup patch over a year ago: 18 years ago
Tom Lane d344115519 Apply my original fix for Taiki Yamaguchi's bug report about DISTINCT MAX(). 18 years ago
Tom Lane 0d49838df6 Arrange to "inline" SQL functions that appear in a query's FROM clause, 18 years ago
Tom Lane c9a1cc694a Change hash index creation so that rather than always establishing exactly 18 years ago
Bruce Momjian 9098ab9e32 Update copyrights in source tree to 2008. 18 years ago
Bruce Momjian f6e8730d11 Re-run pgindent with updated list of typedefs. (Updated README should 18 years ago
Bruce Momjian fdf5a5efb7 pgindent run for 8.3. 18 years ago
Tom Lane c291203ca3 Fix EquivalenceClass code to handle volatile sort expressions in a more 18 years ago
Tom Lane 1be0601681 Last week's patch for make_sort_from_pathkeys wasn't good enough: it has 18 years ago
Tom Lane 82d8ab6fc4 Fix the plan-invalidation mechanism to treat regclass constants that refer to 18 years ago
Tom Lane 89db887b1e Keep the planner from failing on "WHERE false AND something IN (SELECT ...)". 18 years ago
Tom Lane cdf0231c88 Create a function variable "join_search_hook" to let plugins override the 19 years ago
Tom Lane 7125687511 Fix cost estimates for EXISTS subqueries that are evaluated as initPlans 19 years ago
Tom Lane 282d2a03dd HOT updates. When we update a tuple without changing any of its indexed 19 years ago
Magnus Hagander 906b2e1b37 Rename DLLIMPORT macro to PGDLLIMPORT to avoid conflict with 19 years ago
Tom Lane 604ffd280b Create hooks to let a loadable plugin monitor (or even replace) the planner 19 years ago
Tom Lane d7153c5fad Fix best_inner_indexscan to return both the cheapest-total-cost and 19 years ago
Tom Lane 2415ad9831 Teach tuplestore.c to throw away data before the "mark" point when the caller 19 years ago
Tom Lane d26559dbf3 Teach tuplesort.c about "top N" sorting, in which only the first N tuples 19 years ago