| Committer | Teach planner to expand sufficiently simple SQL-language functions ('SELECT expression') inline, like macros, during the constant-folding phase of planning. The actual expansion is not difficult, but checking that we're not changing the semantics of the call turns out to be more subtle than one might think; in particular must pay attention to permissions issues, strictness, and volatility. 8e3a87fb | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Dec 01, 2002 |
| Committer | Fix ExecMakeTableFunctionResult() to work with generic expressions as well as function calls. This is needed for cases where the planner has constant-folded or inlined the original function call. Possibly we should back-patch this change into 7.3 branch as well. 02f8c9a3 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Dec 01, 2002 |
| CommitterBackported | Fix pg_dump failure against 7.1 or older servers, per report from Philip Warner. 9ee7409e | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+22 more | No linked thread | Dec 01, 2002 |
| Committer | Run COPY OUT in a temporary memory context that's reset once per row, and eliminate its manual pfree() calls. This solves the encoding-conversion bug recently reported, and should be faster and more robust than the original coding anyway. For example, we are no longer at risk if datatype output routines leak memory or choose to return a constant string. 3a18f01b | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Dec 01, 2002 |
| Committer | Repair coredump in COPY OUT when client encoding is different from server encoding, per report from Nicolai Tufar. This is a minimum-risk patch for 7.3.1 --- I intend to apply a more general repair in HEAD. cc7883a1 | REL7_3_STABLE7.3.1 | No linked thread | Dec 01, 2002 |
| Committer | Code review for IS DISTINCT FROM patch. Fix incorrect constant-folding logic, dissuade planner from thinking that 'x IS DISTINCT FROM 42' may be optimized into 'x = 42' (!!), cause dependency on = operator to be recorded correctly, minor other improvements. 2b7ec402 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 30, 2002 |
| Committer | Missed one place that can be simplified after recent Param/Const cleanup. 36c356e7 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 30, 2002 |
| Committer | Be more realistic about plans involving Materialize nodes: take their cost into account while planning. 93596941 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 30, 2002 |
| Committer | Make install and clean targets behave more normally. 829cedc8 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 30, 2002 |
| Committer | Upgrade planner and executor to allow multiple hash keys for a hash join, instead of only one. This should speed up planning (only one hash path to consider for a given pair of relations) as well as allow more effective hashing, when there are multiple hashable joinclauses. ddb2d78d | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 30, 2002 |
| Committer | Tighten selection of equality and ordering operators for grouping operations: make sure we use operators that are compatible, as determined by a mergejoin link in pg_operator. Also, add code to planner to ensure we don't try to use hashed grouping when the grouping operators aren't marked hashable. f68f1192 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 29, 2002 |
| CommitterBackported | Repair prehistoric logic error in lseg_eq and lseg_ne. 851a4c48 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+22 more | No linked thread | Nov 29, 2002 |
| Committer | Suppress compiler warning from newer gcc. 0a013c84 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 29, 2002 |
| CommitterBackported | rm should be rm -f, per comment from Peter Harris. (Checked with Peter Eisentraut.) 1941887d | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+22 more | No linked thread | Nov 27, 2002 |
| Committer | Improve some comments. 73235a19 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 27, 2002 |
| Committer | Add note that scaling factor should be >= # of clients. fd89de51 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 27, 2002 |
| Committer | Update resultmap pattern for geometry-solaris-i386-pc: should match solaris 2.8 as well as 2.7. Per report from Martin Renters. 19ddc7ec | REL7_3_STABLEunreleased | No linked thread | Nov 27, 2002 |
| Committer | Use Params, rather than run-time-modified Const nodes, to handle sublink results and COPY's domain constraint checking. A Const that isn't really constant is just a Bad Idea(tm). Remove hacks in parse_coerce and other places that were needed because of the former klugery. ea0b5c85 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 26, 2002 |
| Committer | Remove unused constisset and constiscast fields of Const nodes. Clean up code and documentation associated with Param nodes. f893ee27 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 25, 2002 |
| Committer | Restructure outfuncs and readfuncs to use macros in the same style as just done for copyfuncs/equalfuncs. Read functions in particular get a lot shorter than before, and it's much easier to compare an out function with the corresponding read function to make sure they agree. initdb forced due to small changes in nodestring format (regularizing a few cases that were formerly idiosyncratic). dbe100c4 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 25, 2002 |
| Committer | Un-break triggers declared for INSERT OR DELETE OR UPDATE. This worked okay in 7.3, so I think it must have been busted in the recent triggers patch. 0aa5b686 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 25, 2002 |
| Committer | Restructure the code in copyfuncs and equalfuncs to put much heavier reliance on macros, in hopes of eliminating silly typos (like copying to the wrong field) and just generally making it easier to see the forest instead of the trees. As an example, here is the new code for A_Indices: 2eafcf68 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+21 more | No linked thread | Nov 25, 2002 |