| CommitterBackported | TestConfiguration returns int, not bool. This mistake is relatively harmless on signed-char machines but would lead to core dump in the deadlock detection code if char is unsigned. Amazingly, this bug has been here since 7.1 and yet wasn't reported till now. Thanks to Robert Bruccoleri for providing the opportunity to track it down. 7cd30e15 | master7.4beta1REL_19_STABLE7.4beta1REL_18_STABLE7.4beta1REL_17_STABLE7.4beta1REL_16_STABLE7.4beta1REL_15_STABLE7.4beta1REL_14_STABLE7.4beta1REL_13_STABLE7.4beta1+23 more | No linked thread | Mar 31, 2003 |
| Committer | Fix broken markup. 80597fd9 | 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 | Mar 30, 2003 |
| Committer | Add code to apply some simple sanity checks to the header fields of a page when it's read in, per pghackers discussion around 17-Feb. Add a GUC variable zero_damaged_pages that causes the response to be a WARNING followed by zeroing the page, rather than the normal ERROR; this is per Hiroshi's suggestion that there needs to be a way to get at the data in the rest of the table. fd422628 | 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 | Mar 28, 2003 |
| Committer | Regression output didn't get updated to match recent commit. bb3c00ee | 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 | Mar 28, 2003 |
| CommitterBackported | Fix bogus coding of SET DEFAULT ri triggers ... or at least make it less bogus than it was. Per bug report from Adrian Pop. 1bd159e4 | 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 | Mar 27, 2003 |
| CommitterBackported | GetTupleForTrigger must use outer transaction's command counter for time qual checking, not GetCurrentCommandId. Per test case from Steve Wolfe. bf576cc0 | 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 | Mar 27, 2003 |
| Committer | plpgsql can assign to subscripted variables now, e.g. x[42] := whatever; The facility is pretty primitive because it doesn't do array slicing and it has the same semantics as array update in SQL (array must already be non-null, etc). But it's a start. 2c199283 | 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 | Mar 25, 2003 |
| Committer | Factor out duplicate code for computing values of PLpgSQL_datum items. This is to help localize the changes needed for adding a new kind of PLpgSQL_datum (like, say, an array element...) 316c5cbf | 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 | Mar 25, 2003 |
| Committer | Ignore SIGXFSZ (if platform has it), so that ulimit violations work like disk-full conditions instead of provoking a backend crash. Per suggestion from Frederic Surleau. 6ba159f9 | 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 | Mar 24, 2003 |
| Committer | Modify keys_are_unique optimization to release buffer pins before it returns NULL. This avoids out-of-buffers failures during many-way indexscans, as in Shraibman's complaint of 21-Mar. fddc2d94 | 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 | Mar 24, 2003 |
| Committer | Adjust amrescan code so that it's allowed to call index_rescan with a NULL key pointer, indicating that the existing scan key should be reused. This behavior isn't used yet but will be needed for my planned fix to the keys_are_unique code. 04897830 | 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 | Mar 23, 2003 |
| Committer | Band-aid patch for Shraibman's 'out of free buffers' bug: disable the keys_are_unique optimization introduced in 7.3. A better fix will appear in 7.4, but I think back-patching it is too risky for the stable branch. 579adfd6 | REL7_3_STABLE7.3.3 | No linked thread | Mar 23, 2003 |
| Committer | Instead of storing pg_statistic stavalues entries as text strings, store them as arrays of the internal datatype. This requires treating the stavalues columns as 'anyarray' rather than 'text[]', which is not 100% kosher but seems to work fine for the purposes we need for pg_statistic. Perhaps in the future 'anyarray' will be allowed more generally. 8d9e025e | 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 | Mar 23, 2003 |
| CommitterBackported | Tweak selectivity and related routines to cope with domains. Per report from Andreas Pflug. efeffae2 | 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 | Mar 23, 2003 |
| Committer | Department of second thoughts: probably shouldn't use nth() to get the appropriate targetlist entry out of the subquery. Use an explicit search like we do everywhere else. 9323cb0a | 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 | Mar 22, 2003 |
| Committer | Adjust subquery qual pushdown rules to be more forgiving: if a qual refers to a non-DISTINCT output column of a DISTINCT ON subquery, or if it refers to a function-returning-set, we cannot push it down. But the old implementation refused to push down *any* quals if the subquery had any such 'dangerous' outputs. Now we just look at the output columns actually referenced by each qual expression. More code than before, but probably no slower since we don't make unnecessary checks. 05f916e6 | 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 | Mar 22, 2003 |
| Committer | Fix compile warning. e43094b1 | 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 | Mar 21, 2003 |
| Committer | Reimplement NUMERIC datatype using base-10000 arithmetic; also improve some of the algorithms for higher functions. I see about a factor of ten speedup on the 'numeric' regression test, but it's unlikely that that test is representative of real-world applications. initdb forced due to change of on-disk representation for NUMERIC. d72f6c75 | 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 | Mar 21, 2003 |
| Committer | Arrange to print the relevant key values when reporting a foreign-key violation. Also, factor out some duplicate code in the RI triggers. Patch by Dmitry Tkach, reviewed by Stephan Szabo and Tom Lane. 48dfa0d0 | 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 | Mar 15, 2003 |
| CommitterBackported | pg_dumpall failed on groups having no members. Per report from Nick Eskelinen. 2a443063 | 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 | Mar 14, 2003 |
| CommitterBackported | Repair incorrect prorettype entry for timestamptz_izone. Can't force initdb in the 7.3 branch, but we can at least make it right for people who install 7.3.3 from scratch. a6bf3409 | 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 | Mar 14, 2003 |
| Committer | Make eval_const_expressions simplify FieldSelect from a whole-row Var into an ordinary one-field Var. Per example from Chris Mungall. 7931bfa7 | 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 | Mar 14, 2003 |
| CommitterBackported | Prevent infinite loop in ln_var() due to roundoff error. Per report from Dave Marin. 2a1ef30b | 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 | Mar 14, 2003 |
| CommitterBackported | GROUP BY got confused if there were multiple equal() GROUP BY items. This bug has been latent since 7.0 or maybe even further back, but it was only exposed when parse_clause.c stopped suppressing duplicate items (see its rev 1.96 of 18-Aug-02). 6c4996fa | 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 | Mar 13, 2003 |
| Committer | Add explicit tests for division by zero to all user-accessible integer division and modulo functions, to avoid problems on OS X (which fails to trap 0 divide at all) and Windows (which traps it in some bizarre nonstandard fashion). Standardize on 'division by zero' as the one true spelling of this error message. Add regression tests as suggested by Neil Conway. 31e69ccb | 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 | Mar 11, 2003 |
| Committer | Implement SQL92-compatible FIRST, LAST, ABSOLUTE n, RELATIVE n options for FETCH and MOVE. 6261c750 | 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 | Mar 11, 2003 |
| Committer | This patch fixes a bunch of spelling mistakes in comments throughout the PostgreSQL source code. e4704001 | 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 | Mar 10, 2003 |
| Committer | Restructure parsetree representation of DECLARE CURSOR: now it's a utility statement (DeclareCursorStmt) with a SELECT query dangling from it, rather than a SELECT query with a few unusual fields in it. Add code to determine whether a planned query can safely be run backwards. If DECLARE CURSOR specifies SCROLL, ensure that the plan can be run backwards by adding a Materialize plan node if it can't. Without SCROLL, you get an error if you try to fetch backwards from a cursor that can't handle it. (There is still some discussion about what the exact behavior should be, but this is necessary infrastructure in any case.) Along the way, make EXPLAIN DECLARE CURSOR work. aa83bc04 | 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 | Mar 10, 2003 |
| CommitterBackported | pg_restore failed to restore blobs if -X disable-triggers is specified. b9e8ffcd | 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 | Mar 09, 2003 |
| Committer | tuplestore_donestoring() isn't needed anymore, but provide a no-op macro definition so as not to create compatibility problems. dd04e958 | 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 | Mar 09, 2003 |
| Committer | Revise tuplestore and nodeMaterial so that we don't have to read the entire contents of the subplan into the tuplestore before we can return any tuples. Instead, the tuplestore holds what we've already read, and we fetch additional rows from the subplan as needed. Random access to the previously-read rows works with the tuplestore, and doesn't affect the state of the partially-read subplan. This is a step towards fixing the problems with cursors over complex queries --- we don't want to stick in Materialize nodes if they'll prevent quick startup for a cursor. aa60eecc | 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 | Mar 09, 2003 |
| CommitterBackported | Tweak dependency code to suppress NOTICEs generated by new method for cleaning out temp namespaces. We don't really want the server log to be cluttered with 'Drop cascades to table foo' every time someone uses a temp table... f7cffbbb | 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 | Mar 06, 2003 |
| CommitterBackported | Add missing --globals-only (long form of -g). 0c693b49 | 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 | Mar 06, 2003 |
| Committer | Use poll(2) in preference to select(2), if available. This solves problems in applications that may have a large number of files open, such that libpq's socket number exceeds the range supported by fd_set. From Chris Brown. 1d573741 | 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 | Mar 06, 2003 |
| Committer | Add code to dump contents of free space map into $PGDATA/global/pg_fsm.cache at database shutdown, and then load it again at database startup. This preserves our hard-won knowledge of free space across restarts (given an orderly shutdown, that is). 4b6c198a | 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 | Mar 06, 2003 |
| Committer | Turns out new IN implementation has got some problems in an UPDATE or DELETE with inherited target table. Fix it; add a regression test. Also, correct ancient misspelling of 'inherited'. 21591967 | 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 | Mar 05, 2003 |
| CommitterBackported | Repair bug reported by Laurent Perez: bad plan generated when UPDATE or DELETE of an inheritance tree references another inherited relation. This bug has been latent since 7.1; I'm still not quite sure why 7.1 and 7.2 don't manifest it (at least, they don't crash on a simple test case). 147fbf9c | 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 | Mar 05, 2003 |
| Committer | Reimplement free-space-map management as per recent discussions. Adjustable threshold is gone in favor of keeping track of total requested page storage and doling out proportional fractions to each relation (with a minimum amount per relation, and some quantization of the results to avoid thrashing with small changes in page counts). Provide special- case code for indexes so as not to waste space storing useless page free space counts. Restructure internal data storage to be a flat array instead of list-of-chunks; this may cost a little more work in data copying when reorganizing, but allows binary search to be used during lookup_fsm_page_entry(). 391eb5e5 | 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 | Mar 04, 2003 |
| CommitterBackported | Prevent clustering on incomplete indexes: partial indexes are verboten, as are non-amindexnulls AMs unless first column is attnotnull. a455c942 | 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 | Mar 03, 2003 |
| Committer | Improve description of geometric operators. d28cd227 | 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 | Mar 03, 2003 |
| Committer | Correct/edit comments for geometric operators. No change except to pg_description entries, so I did not force initdb. b9ddb633 | 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 | Mar 03, 2003 |
| Committer | Be smart about outer-join qualifications that mention only one side of the join, per recent discussion on pgsql-sql. Not clear that this will come up often in real queries, but it's not any more expensive to do it right, so we may as well do it right. 30a695d3 | 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 | Mar 02, 2003 |
| CommitterBackported | Repair memory leak introduced by recent change to make SPI return a tupdesc even with zero tuples returned: some plpgsql routines assumed they didn't need to do SPI_freetuptable() after retrieving no tuples. a1dbe521 | 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 | Mar 02, 2003 |