Commit Graph

318 Commits (3a6e2ff08a73e08efe2e1c44a32e56d84ff41dfd)

Author SHA1 Message Date
Tom Lane 7a3e30e608 Add INSERT/UPDATE/DELETE RETURNING, with basic docs and regression tests. 20 years ago
Joe Conway 9caafda579 Add support for multi-row VALUES clauses as part of INSERT statements 20 years ago
Tom Lane 09d3670df3 Change the relation_open protocol so that we obtain lock on a relation 20 years ago
Peter Eisentraut 79bc99a467 Convert effective_cache_size to an integer, for better integration with 20 years ago
Bruce Momjian 085e559654 Change LIMIT/OFFSET to use int8 20 years ago
Tom Lane 98359c3e3f In the recent changes to make the planner account better for cache 20 years ago
Tom Lane 9b556322c5 Fix some missing inclusions identified with new pgcheckdefines tool. 20 years ago
Bruce Momjian a22d76d96a Allow include files to compile own their own. 20 years ago
Tom Lane cffd89ca73 Revise the planner's handling of "pseudoconstant" WHERE clauses, that is 20 years ago
Tom Lane 8a30cc2127 Make the planner estimate costs for nestloop inner indexscans on the basis 20 years ago
Tom Lane e4de635a2b Increase the default value of cpu_index_tuple_cost from 0.001 to 0.005. 20 years ago
Tom Lane eed6c9ed7e Add a GUC parameter seq_page_cost, and use that everywhere we formerly 20 years ago
Bruce Momjian f2f5b05655 Update copyright for 2006. Update scripts. 20 years ago
Tom Lane 336a6491aa Improve my initial, rather hacky implementation of joins to append 20 years ago
Tom Lane 3893127431 Fix constraint exclusion to work in inherited UPDATE/DELETE queries 20 years ago
Tom Lane 8b109ebf14 Teach planner to convert simple UNION ALL subqueries into append relations, 20 years ago
Bruce Momjian 59bb147353 Update random() usage so ranges are inclusive/exclusive as required. 20 years ago
Tom Lane 8a1468af4e Restructure planner's handling of inheritance. Rather than processing 20 years ago
Tom Lane a1b7e70c5f Fix code that checks to see if an index can be considered to match the query's 20 years ago
Tom Lane 3a0a16cb7e Allow row comparisons to be used as indexscan qualifications. 20 years ago
Tom Lane e3b9852728 Teach planner how to rearrange join order for some classes of OUTER JOIN. 20 years ago
Tom Lane da27c0a1ef Teach tid-scan code to make use of "ctid = ANY (array)" clauses, so that 20 years ago
Tom Lane 290166f934 Teach planner and executor to handle ScalarArrayOpExpr as an indexable 20 years ago
Tom Lane 1bdf124b94 Restore the former RestrictInfo field valid_everywhere (but invert the flag 20 years ago
Bruce Momjian 1dc3498251 Standard pgindent run for 8.1. 21 years ago
Tom Lane 2e1254e7fa Repair planning bug introduced in 7.4: outer-join ON clauses that referenced 21 years ago
Tom Lane 4e5fbb34b3 Change the division of labor between grouping_planner and query_planner 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 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 cc5e80b8d1 Teach planner about some cases where a restriction clause can be 21 years ago
Tom Lane 2f1210629c Separate predicate-testing code out of indxpath.c, making it a module 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 a31ad27fc5 Simplify the planner's join clause management by storing join clauses 21 years ago
Tom Lane 9ab4d98168 Remove planner's private fields from Query struct, and put them into 21 years ago
Tom Lane e2159f3842 Teach the planner to remove SubqueryScan nodes from the plan if they 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 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 4a8c5d0375 Create executor and planner-backend support for decoupled heap and index 21 years ago
Tom Lane 7ace43e0c2 Fix oversight in MIN/MAX optimization: must not return NULL entries 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 5db2e83852 Rethink the order of expression preprocessing: eval_const_expressions 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
Neil Conway d344505d1b This patch moves some code for preprocessing FOR UPDATE from 21 years ago