Commit Graph

212 Commits (8c49a484e8ebb0199fba4bd68eaaedaf49b48ed0)

Author SHA1 Message Date
Robert Haas 8c49a484e8 Assign each subquery a unique name prior to planning it. 2 months ago
Richard Guo e2debb6438 Reduce "Var IS [NOT] NULL" quals during constant folding 5 months ago
Richard Guo 904f6a593a Centralize collection of catalog info needed early in the planner 5 months ago
Richard Guo e0d0529526 Expand virtual generated columns before sublink pull-up 5 months ago
Alexander Korotkov c0962a113d Convert 'x IN (VALUES ...)' to 'x = ANY ...' then appropriate 9 months ago
Richard Guo cc5d98525d Fix incorrect handling of subquery pullup 9 months ago
Richard Guo 4c49611715 Remove code setting wrap_non_vars to true for UNION ALL subqueries 9 months ago
Tom Lane f4e7756ef9 Build whole-row Vars the same way during parsing and planning. 9 months ago
Richard Guo 363a6e8c6f Eliminate code duplication in replace_rte_variables callbacks 10 months ago
Richard Guo 1e4351af32 Expand virtual generated columns in the planner 10 months ago
Dean Rasheed 80feb727c8 Add OLD/NEW support to RETURNING in DML queries. 11 months ago
Bruce Momjian 50e6eb731d Update copyright for 2025 12 months ago
Richard Guo 60be3f9f0a Avoid unnecessary wrapping for more complex expressions 1 year ago
Richard Guo f64ec81a81 Avoid unnecessary wrapping for Vars and PHVs 1 year ago
Tom Lane e032e4c7dd Avoid mislabeling of lateral references, redux. 1 year ago
Tom Lane 5c9d8636d3 Avoid mislabeling of lateral references when pulling up a subquery. 1 year ago
Peter Eisentraut 7f798aca1d Remove useless casts to (void *) 1 year ago
Daniel Gustafsson fb7e27abfb Remove duplicate words in comments 1 year ago
Dean Rasheed 259a0a99fe Fix wrong varnullingrels error for MERGE WHEN NOT MATCHED BY SOURCE. 1 year ago
Dean Rasheed dddb5640c6 Fix incorrect non-strict join recheck in MERGE WHEN NOT MATCHED BY SOURCE. 1 year ago
Richard Guo 247dea89f7 Introduce an RTE for the grouping step 1 year ago
Tom Lane cb8e50a4a0 Avoid inserting PlaceHolderVars in cases where pre-v16 PG did not. 1 year ago
Richard Guo aa86129e19 Support "Right Semi Join" plan shapes 1 year ago
David Rowley 7d2c7f08d9 Fix query pullup issue with WindowClause runCondition 2 years ago
Dean Rasheed 2e068db56e Use macro NUM_MERGE_MATCH_KINDS instead of '3' in MERGE code. 2 years ago
Tom Lane e0df80828a Fix type-checking of RECORD-returning functions in FROM, redux. 2 years ago
Dean Rasheed 0294df2f1f Add support for MERGE ... WHEN NOT MATCHED BY SOURCE. 2 years ago
Dean Rasheed 5f2e179bd3 Support MERGE into updatable views. 2 years ago
Tom Lane 29f114b6ff Allow subquery pullup to wrap a PlaceHolderVar in another one. 2 years ago
Bruce Momjian 29275b1d17 Update copyright for 2024 2 years ago
Tom Lane 3af87736bf Fix another cause of "wrong varnullingrels" planner failures. 3 years ago
Tom Lane 16dc2703c5 Support "Right Anti Join" plan shapes. 3 years ago
Tom Lane 3bef56e116 Invent "join domains" to replace the below_outer_join hack. 3 years ago
Tom Lane b448f1c8d8 Do assorted mop-up in the planner. 3 years ago
Tom Lane 2489d76c49 Make Vars be outer-join-aware. 3 years ago
Tom Lane 8d83a5d0a2 Remove redundant grouping and DISTINCT columns. 3 years ago
Bruce Momjian c8e1ba736b Update copyright for 2023 3 years ago
Tom Lane e42e312430 Avoid O(N^2) cost when pulling up lots of UNION ALL subqueries. 3 years ago
Tom Lane 5beb7881fb Add some recursion and looping defenses in prepjointree.c. 3 years ago
David Rowley 94985c2102 Add subquery pullup handling for WindowClause runCondition 3 years ago
Alvaro Herrera a61b1f7482
Rework query relation permission checking 3 years ago
Tom Lane 51dfaa0b01 Remove bogus Assert and dead code in remove_useless_results_recurse(). 3 years ago
Tom Lane e9e26b5e71 Invent "multibitmapsets", and use them to speed up antijoin detection. 3 years ago
Tom Lane b0b72c64a0 Don't pass down nonnullable_vars while reducing outer joins. 3 years ago
Tom Lane b3ff6c742f Use an explicit state flag to control PlaceHolderInfo creation. 3 years ago
Alvaro Herrera 7103ebb7aa
Add support for MERGE SQL command 4 years ago
Tom Lane d7b5c071dd Don't bother to attach column name lists to RowExprs of named types. 4 years ago
Bruce Momjian 27b77ecf9f Update copyright for 2022 4 years ago
Tom Lane e3ec3c00d8 Remove arbitrary 64K-or-so limit on rangetable size. 4 years ago
Tom Lane d23ac62afa Avoid creating a RESULT RTE that's marked LATERAL. 5 years ago