| Committer | Disallow scrolling of FOR UPDATE/FOR SHARE cursors, so as to avoid problems in corner cases such as re-fetching a just-deleted row. We may be able to relax this someday, but let's find out how many people really care before we invest a lot of work in it. Per report from Heikki and subsequent discussion. 048efc25 | master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more | No linked thread | Oct 24, 2007 |
| Committer | Remove obsolete statement that you can't update through a cursor. 8a35b07e | master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more | No linked thread | Oct 24, 2007 |
| CommitterBackported | Fix an error in make_outerjoininfo introduced by my patch of 30-Aug: the code neglected to test whether an outer join's join-condition actually refers to the lower outer join it is looking at. (The comment correctly described what was supposed to happen, but the code didn't do it...) This often resulted in adding an unnecessary constraint on the join order of the two outer joins, which was bad enough. However, it also seems to expose a performance problem in an older patch (from 15-Feb): once we've decided that there is a join ordering constraint, we will start trying clauseless joins between every combination of rels within the constraint, which pointlessly eats up lots of time and space if there are numerous rels below the outer join. That probably needs to be revisited :-(. Per gripe from Jakub Ouhrabka. 3ef18797 | master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+18 more | No linked thread | Oct 24, 2007 |
| Committer | Fix UPDATE/DELETE WHERE CURRENT OF to support repeated update and update- then-delete on the current cursor row. The basic fix is that nodeTidscan.c has to apply heap_get_latest_tid() to the current-scan-TID obtained from the cursor query; this ensures we get the latest row version to work with. However, since that only works if the query plan is a TID scan, we also have to hack the planner to make sure only that type of plan will be selected. (Formerly, the planner might decide to apply a seqscan if the table is very small. This change is probably a Good Thing anyway, since it's hard to see how a seqscan could really win.) That means the execQual.c code to support CurrentOfExpr as a regular expression type is dead code, so replace it with just an elog(). Also, add regression tests covering these cases. Note that the added tests expose the fact that re-fetching an updated row misbehaves if the cursor used FOR UPDATE. That's an independent bug that should be fixed later. Per report from Dharmendra Goyal. c29a9c37 | master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more | No linked thread | Oct 24, 2007 |
| Committer | Keep heap_page_prune from marking the buffer dirty when it didn't really change anything. Per report from Itagaki Takahiro. Fix by Pavan Deolasee. 9226ba81 | master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more | No linked thread | Oct 24, 2007 |
| Committer | Set read_only = TRUE while evaluating input queries for ts_rewrite() and ts_stat(), per my recent suggestion. Also add a possibly-not-needed- but-can't-hurt check for NULL SPI_tuptable, before we try to dereference same. 1c927249 | master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more | No linked thread | Oct 24, 2007 |
| Committer | Remove the aggregate form of ts_rewrite(), since it doesn't work as desired if there are zero rows to aggregate over, and the API seems both conceptually and notationally ugly anyway. We should look for something that improves on the tsquery-and-text-SELECT version (which is also pretty ugly but at least it works...), but it seems that will take query infrastructure that doesn't exist today. (Hm, I wonder if there's anything in or near SQL2003 window functions that would help?) Per discussion. 592c88a0 | master8.3beta2REL_19_STABLE8.3beta2REL_18_STABLE8.3beta2REL_17_STABLE8.3beta2REL_16_STABLE8.3beta2REL_15_STABLE8.3beta2REL_14_STABLE8.3beta2REL_13_STABLE8.3beta2+17 more | No linked thread | Oct 24, 2007 |