| Committer | Found the problem with my operator-family changes: by fetching from pg_opclass during LookupOpclassInfo(), I'd turned pg_opclass_oid_index into a critical system index. However the problem could only manifest during a backend's first attempt to load opclass data, and then only if it had successfully loaded pg_internal.init and subsequently received a relcache flush; which made it impossible to reproduce in sequential tests and darn hard even in parallel tests. Memo to self: when exercising cache flush scenarios, must disable LookupOpclassInfo's internal cache too. 0b56be83 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 31, 2006 |
| Committer | Support type modifiers for user-defined types, and pull most knowledge about typmod representation for standard types out into type-specific typmod I/O functions. Teodor Sigaev, with some editorialization by Tom Lane. 5725b9d9 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 30, 2006 |
| Committer | Add support for XML build option to MSVC build scripts. Magnus Hagander cd44c23e | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 29, 2006 |
| Committer | Fix multiple breakages in last XML patch. dbfb7274 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 29, 2006 |
| Committer | Fix up btree's initial scankey processing to be able to detect redundant or contradictory keys even in cross-data-type scenarios. This is another benefit of the opfamily rewrite: we can find the needed comparison operators now. 9aefd566 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 28, 2006 |
| Committer | Remove caveat about avoiding cross-type operators in constraints intended for use with constraint exclusion. We can prove those cases now... e1b8a55e | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 28, 2006 |
| Committer | Enable btree_predicate_proof() to make proofs involving cross-data-type predicate operators. The hard stuff turns out to be already done in the previous commit, we need merely open the floodgates... c99ddfc4 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 28, 2006 |
| CommitterBackported | Add a defense to prevent core dumps if 8.2 version of rank_cd() is used with the 8.1 SQL function definition for it. Per report from Rajesh Kumar Mallah, such a DBA error doesn't seem at all improbable, and the cost of checking for it is not very high compared to the cost of running this function. (It would have been better to change the C name of the function so it wouldn't be called by the old SQL definition, but it's too late for that now in the 8.2 branch.) 859b8dd5 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 28, 2006 |
| Committer | fflush the \o file, if any, after each backslash command. We already do this for ordinary SQL commands, so it seems consistent to do it for backslash commands too. Per gripe from Rajesh Kumar Mallah. 3a7f5459 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 28, 2006 |
| CommitterBackported | Revert exports.list change pending closer study. 36b87062 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 28, 2006 |
| CommitterBackported | Use a more backward-compatible syntax for exports.list on Linux. Per Thorkil Olesen. 65b541b3 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 27, 2006 |
| CommitterBackported | Modify local buffer management to request memory for local buffers in blocks of increasing size, instead of one at a time. This reduces the memory management overhead when num_temp_buffers is large: in the previous coding we would actually waste 50% of the space used for temp buffers, because aset.c would round the individual requests up to 16K. Problem noted while studying a performance issue reported by Steven Flatt. 72619f81 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more | No linked thread | Dec 27, 2006 |
| Committer | Improve memory management code to avoid inefficient behavior when a context has a small maxBlockSize: the maximum request size that we will treat as a "chunk" needs to be limited to fit in maxBlockSize. Otherwise we will round up the request size to the next power of 2, wasting space, which is a bit pointless if we aren't going to make the blocks big enough to fit additional stuff in them. The example motivating this is local buffer management, which makes repeated allocations of 8K (one BLCKSZ buffer) in TopMemoryContext, which has maxBlockSize = 8K because for the most part allocations there are small. This leads to each local buffer actually eating 16K of space, which adds up when there are thousands of them. I intend to change localbuf.c to aggregate its requests, which will prevent this particular misbehavior, but it seems likely that similar scenarios could arise elsewhere, so fixing the core problem seems wise as well. c22dea89 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 27, 2006 |
| CommitterBackported | Print combining characters (those reported as having zero width by PQdsplen()) normally, instead of replacing them by \uXXXX sequences. Assume that they in fact occupy zero screen space for formatting purposes. Per gripe from Michael Fuhr and ensuing discussion. 6bb7b467 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 27, 2006 |
| CommitterBackported | Use FROM clause in example UPDATE commands where appropriate. Also remove long-obsolete statement that there isn't a check for infinite recursion in view rules. de9be563 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 27, 2006 |
| CommitterBackported | Fix failure due to accessing an already-freed tuple descriptor in a plan involving HashAggregate over SubqueryScan (this is the known case, there may well be more). The bug is only latent in releases before 8.2 since they didn't try to access tupletable slots' descriptors during ExecDropTupleTable. The least bogus fix seems to be to make subqueries share the parent query's memory context, so that tupdescs they create will have the same lifespan as those of the parent query. There are comments in the code envisioning going even further by not having a separate child EState at all, but that will require rethinking executor access to range tables, which I don't want to tackle right now. Per bug report from Jean-Pierre Pelletier. 0cbc5b1e | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 26, 2006 |
| CommitterBackported | Repair bug #2839: the various ExecReScan functions need to reset ps_TupFromTlist in plan nodes that make use of it. This was being done correctly in join nodes and Result nodes but not in any relation-scan nodes. Bug would lead to bogus results if a set-returning function appeared in the targetlist of a subquery that could be rescanned after partial execution, for example a subquery within EXISTS(). Bug has been around forever :-( ... surprising it wasn't reported before. 68996463 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+22 more | No linked thread | Dec 26, 2006 |
| CommitterBackported | Repair bug #2836: SPI_execute_plan returned zero if none of the querytrees were marked canSetTag. While it's certainly correct to return the result of the last one that is marked canSetTag, it's less clear what to do when none of them are. Since plpgsql will complain if zero is returned, the 8.2.0 behavior isn't good. I've fixed it to restore the prior behavior of returning the physically last query's result code when there are no canSetTag queries. fccf99f0 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 26, 2006 |
| Committer | Remove incorrect semicolon in example. Joachim Wieland 4a836bad | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 26, 2006 |
| CommitterBackported | Make HISTCONTROL=ignoredups work again (broken by misordering of operations during recent code refactoring). Per bug #2840 from Ned Crigler. 506a9893 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 24, 2006 |
| Committer | Bring some order and sanity to error handling in the xml patch. Use a TRY block instead of (inadequate) ad-hoc coding to ensure that libxml is cleaned up after a failure. Report the intended SQLCODE instead of defaulting to XX000. Avoid risking use of a dangling pointer by keeping the persistent error buffer in TopMemoryContext. Be less trusting that error messages don't contain %. 57f1630c | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 24, 2006 |
| Committer | Fix machine-dependent crash in sqlchar_to_unicode(). Get rid of bletcherous and unsafe manipulation of global encoding setting. Clean up libxml reporting mechanism a bit (it still looks like a dangling-pointer crash waiting to happen, though, not to mention being far less than sane from a localization standpoint). e9da20ab | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 24, 2006 |
| Committer | Code review for XML patch. Instill a bit of sanity in the location of the XmlExpr code in various lists, use a representation that has some hope of reverse-listing correctly (though it's still a de-escaping function shy of correctness), generally try to make it look more like Postgres coding conventions. c957c0ba | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 24, 2006 |
| Committer | Suppress various compiler warnings in new xml code. 64974613 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 23, 2006 |
| Committer | Restructure operator classes to allow improved handling of cross-data-type cases. Operator classes now exist within "operator families". While most families are equivalent to a single class, related classes can be grouped into one family to represent the fact that they are semantically compatible. Cross-type operators are now naturally adjunct parts of a family, without having to wedge them into a particular opclass as we had done originally. a78fcfb5 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 23, 2006 |
| Committer | Set pg_am.amstrategies to zero for index AMs that don't have fixed operator strategy numbers, ie, GiST and GIN. This is almost cosmetic enough to not need a catversion bump, but since the opr_sanity regression test has to change in sync with the catalog entry, I figured I'd better do one. 93b4f0ff | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 18, 2006 |
| CommitterBackported | Fix some planner bugs exposed by reports from Arjen van der Meijden. These are all in new-in-8.2 logic associated with indexability of ScalarArrayOpExpr (IN-clauses) or amortization of indexscan costs across repeated indexscans on the inside of a nestloop. In particular: 281f4018 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 15, 2006 |
| CommitterBackported | Put JST back into the default set of timezone abbreviations; was removed in an unexplainable moment of brain fade. 782d68e3 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 15, 2006 |
| CommitterBackported | Make --with-ldap build on Unixware, per Olivier Prenant. 1f09a857 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 14, 2006 |
| Committer | Put back yet another improperly-removed #include, per Mark Kirkwood. ec97c55d | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 13, 2006 |
| CommitterBackported | Fix planner to do the right thing when a degenerate outer join (one whose joinclause doesn't use any outer-side vars) requires a "bushy" plan to be created. The normal heuristic to avoid joins with no joinclause has to be overridden in that case. Problem is new in 8.2; before that we forced the outer join order anyway. Per example from Teodor. f18c57fd | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 12, 2006 |
| Committer | Add a paramtypmod field to Param nodes. This is dead weight for Params representing externally-supplied values, since the APIs that carry such values only specify type not typmod. However, for PARAM_SUBLINK Params it is handy to carry the typmod of the sublink's output column. This is a much cleaner solution for the recently reported 'could not find pathkey item to sort' and 'failed to find unique expression in subplan tlist' bugs than my original 8.2-compatible patch. Besides, someday we might want to support typmods for external parameters ... 9fa12ddd | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 10, 2006 |
| Committer | Remove the logId/logSeg fields from pg_control, because they are not needed in normal operation, and we can avoid rewriting pg_control at every log segment switch if we don't insist that these values be valid. Reducing the number of pg_control updates is a good idea for both performance and reliability. It does make pg_resetxlog's life a bit harder, but that seems a good tradeoff; and anyway the change to pg_resetxlog amounts to automating something people formerly needed to do by hand, namely look at the existing pg_xlog files to make sure the new WAL start point was past them. 0cb91ccb | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 08, 2006 |
| CommitterBackported | Fix broken markup. 98cacd1a | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 08, 2006 |
| CommitterBackported | Avoid double free of _SPI_current->tuptable. AtEOSubXact_SPI() now tries to release it in a subtransaction abort, but this neglects possibility that someone outside SPI already did. Fix is for spi.c to forget about a tuptable as soon as it's handed it back to the caller. Per bug #2817 from Michael Andreen. 566480ac | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 08, 2006 |
| CommitterBackported | Repair incorrect placement of WHERE clauses when there are multiple, rearrangeable outer joins and the WHERE clause is non-strict and mentions only nullable-side relations. New bug in 8.2, caused by new logic to allow rearranging outer joins. Per bug #2807 from Ross Cohen; thanks to Jeff Davis for producing a usable test case. 8124215c | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 07, 2006 |
| CommitterBackported | Fix planning of SubLinks to ensure that Vars generated from transformation of a sublink's test expression have the correct vartypmod, rather than defaulting to -1. There's at least one place where this is important because we're expecting these Vars to be exactly equal() to those appearing in the subplan itself. This is a pretty klugy solution --- it would likely be cleaner to change Param nodes to include a typmod field --- but we can't do that in the already-released 8.2 branch. Per bug report from Hubert Fongarnand. b307d7a6 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 06, 2006 |
| Committer | Refactor ExecGetJunkAttribute to avoid searching for junk attributes by name on each and every row processed. Profiling suggests this may buy a percent or two for simple UPDATE scenarios, which isn't huge, but when it's so easy to get ... 8dcc8e37 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 04, 2006 |
| CommitterBackported | Fix LIMIT/OFFSET for null limit values. This worked before 8.2 but was broken by the change to make limit values int8 instead of int4. (Specifically, you can do DatumGetInt32 safely on a null value, but not DatumGetInt64.) Per bug #2803 from Greg Johnson. 406d028a | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more | No linked thread | Dec 03, 2006 |
| Committer | Stamp HEAD as 8.3devel. 75330c32 | master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more | No linked thread | Dec 02, 2006 |
| Committer | Put release date in release notes. ceb1cc90 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Dec 02, 2006 |
| Committer | Add some documentation for DTrace support. Simon Riggs 606b10f9 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Dec 02, 2006 |
| Committer | Editorial improvements for GIN documentation. 08fa6a68 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Dec 01, 2006 |
| Committer | Some more supported-platforms updates: buildfarm hare is alive again, and penguin reported in recently enough to justify the assumption that we haven't broken ARM support in 8.2. a88ec7b4 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Dec 01, 2006 |
| CommitterBackported | Document the recently-understood hazard that a rollback can release row-level locks that logically should not be released, because when a subtransaction overwrites XMAX all knowledge of the previous lock state is lost. It seems unlikely that we will be able to fix this before 8.3... c184470b | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+20 more | No linked thread | Dec 01, 2006 |
| Committer | Make the bgwriter's error recovery path do smgrcloseall(). On Windows this should allow delete-pending files to actually go away, and thereby work around the various complaints we've seen about 'permission denied' errors in such cases. Should be reasonably harmless in any case... 3049fe7c | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Dec 01, 2006 |
| Committer | Editorial improvements to backup and warm-standby documentation. b02414bb | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Dec 01, 2006 |
| Committer | Minor wording improvements. f378ccc2 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Dec 01, 2006 |
| Committer | Adjust the description of locking to clarify that locks held by a subtransaction are released if the subtransaction aborts --- in user-level terminology, this means either rolling back to a savepoint or escaping from a plpgsql exception block. Per recent suggestion from Simon. da6daee2 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Dec 01, 2006 |
| Committer | Better solution to the tr problem: use sed instead. Per Martijn and Andrew. 746330e2 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 30, 2006 |
| Committer | Improve portability of 'tr' invocation in PGAC_ARG_CHECK. Reported by Olivier Prenant, fixed by Peter. 7ac9d45f | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 30, 2006 |
| Committer | Update supported-platforms list based on recent buildfarm results. cd99debb | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 30, 2006 |
| Committer | Minor adjustments to make failures in startup/shutdown behave more cleanly. StartupXLOG and ShutdownXLOG no longer need to be critical sections, because in all contexts where they are invoked, elog(ERROR) would be translated to elog(FATAL) anyway. (One change in bgwriter.c is needed to make this true: set ExitOnAnyError before trying to exit. This is a good fix anyway since the existing code would have gone into an infinite loop on elog(ERROR) during shutdown.) That avoids a misleading report of PANIC during semi-orderly failures. Modify the postmaster to include the startup process in the set of processes that get SIGTERM when a fast shutdown is requested, and also fix it to not try to restart the bgwriter if the bgwriter fails while trying to write the shutdown checkpoint. Net result is that "pg_ctl stop -m fast" does something reasonable for a system in warm standby mode, and so should Unix system shutdown (ie, universal SIGTERM). Per gripe from Stephen Harris and some corner-case testing of my own. 5f60086e | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 30, 2006 |
| Committer | Ignore libedit/libreadline while probing for strlcpy and some other standard functions. Per report from Stefan Kaltenbrunner. 59cf88da | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 29, 2006 |
| Committer | More MSVC build support from Magnus. ae8c1bea | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 29, 2006 |
| Committer | Add an example showing how to cope with mixed-case names in pg_dump switches. 7bbe35a5 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 28, 2006 |
| CommitterBackported | Update timezone data to tzdata2006p zic distribution. It seems Western Australia decided to institute DST with one month's notice ... way to go, politicians. 765cc158 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+20 more | No linked thread | Nov 28, 2006 |
| CommitterBackported | Mark to_number() and the numeric-type variants of to_char() as stable, not immutable, because their results depend on lc_numeric; this is a longstanding oversight. We cannot force initdb for this in the back branches, but we can at least provide correct catalog entries for future installations. 0b11a152 | REL8_1_STABLE8.1.6REL8_0_STABLE8.0.10REL7_4_STABLE7.4.15REL7_3_STABLE7.3.17 | No linked thread | Nov 28, 2006 |
| Committer | Mark to_char(timestamp without timezone) as stable, not immutable, since its result now depends on the lc_messages setting, as noted by Bruce. Also, mark to_number() and the numeric-type variants of to_char() as stable, because their results depend on lc_numeric; this is a longstanding oversight. Also, mark to_date() and to_char(interval) as stable; although these appear not to depend on any GUC variables as of CVS HEAD, that seems a property unlikely to survive future improvements. It seems best to mark all the formatting functions stable and be done with it. catversion not bumped, because this does not seem critical enough to force a post-RC1 initdb, and anyway we cannot do so in the back branches. 64353640 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 28, 2006 |
| Committer | Back-patch HEAD's fixes to recognize __ppc64__ as equivalent to __powerpc64__. Per confirmation from Brian Wipf that this is correct and necessary for Darwin 64-bit. 583159ff | REL8_1_STABLE8.1.6 | No linked thread | Nov 28, 2006 |
| Committer | Add $(CFLAGS) to the simplified build rule for .so libraries on Darwin. Arguably we should do this on *all* platforms, but for the moment I'll be conservative and just do it where it's demonstrably needed. Per report from Brian Wipf. 6db9d267 | REL8_1_STABLE8.1.6 | No linked thread | Nov 28, 2006 |
| Committer | Add $(CFLAGS) to the simplified build rule for .so libraries on Darwin. Arguably we should do this on *all* platforms, but for the moment Ill fa8e42df | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 28, 2006 |
| Committer | Fix inheritance description to note that not-null constraints are inherited, per Taiki Yamaguchi. c15de02f | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 28, 2006 |
| Committer | Make pg_restore usage examples more useful: illustrate restoring into both the same database name and a different one. 81b0b064 | master8.2.0REL_19_STABLE8.2.0REL_18_STABLE8.2.0REL_17_STABLE8.2.0REL_16_STABLE8.2.0REL_15_STABLE8.2.0REL_14_STABLE8.2.0REL_13_STABLE8.2.0+18 more | No linked thread | Nov 26, 2006 |
| Committer | Update release notes for RC1. a7a3d0f0 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 24, 2006 |
| CommitterBackported | Fix psql's \copy command to ensure that it cycles libpq back to the idle state (in particular, causing the ReadyForQuery message to be eaten) before returning from do_copy. The only known consequence of failing to do so is that get_prompt might show a wrong result for the %x transaction status escape, as reported by Bernd Helmle; but it's possible there are other issues. df3a6fe4 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+21 more | No linked thread | Nov 24, 2006 |
| Committer | Change pg_stat_all_tables and sister views to put the recently-added vacuum/analyze timestamp columns at the end, rather than at a random spot in the middle as in the original patch. This was deemed more usable as well as less likely to break existing application code. initdb forced accordingly. In passing, remove former kluge for initializing pg_stat_file()'s pg_proc entry --- bootstrap mode was fixed recently so that this can be done without any hacks, but I overlooked this usage. 988a87a0 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 24, 2006 |
| Committer | Make contrib/isn pass the opr_sanity sanity checks: add missing commutator operators, and mark hash-opclass members as oprcanhash. This is a pretty ugly, brute-force solution, but it seems that getting rid of all these redundant-looking operators would require some tweaks in the core operator-resolution code to behave nicely, and I'm not willing to risk that just before RC1. 2822c7c0 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 24, 2006 |
| Committer | Un-break ecpg regression test. ce3d1a4f | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 23, 2006 |
| Committer | Several changes to reduce the probability of running out of memory during AbortTransaction, which would lead to recursion and eventual PANIC exit as illustrated in recent report from Jeff Davis. First, in xact.c create a special dedicated memory context for AbortTransaction to run in. This solves the problem as long as AbortTransaction doesn't need more than 32K (or whatever other size we create the context with). But in corner cases it might. Second, in trigger.c arrange to keep pending after-trigger event records in separate contexts that can be freed near the beginning of AbortTransaction, rather than having them persist until CleanupTransaction as before. Third, in portalmem.c arrange to free executor state data earlier as well. These two changes should result in backing off the out-of-memory condition before AbortTransaction needs any significant amount of memory, at least in typical cases such as memory overrun due to too many trigger events or too big an executor hash table. And all the same for subtransaction abort too, of course. 395249ec | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 23, 2006 |
| CommitterBackported | Fix 1-byte buffer overrun when OID exceeds 1 billion. This probably can't cause any serious harm in normal cases, but if you have gcc buffer overrun checking turned on, that will notice. Found by Jack Orenstein. Problem was already fixed in CVS HEAD. c4950aa1 | REL8_1_STABLE8.1.6REL8_0_STABLE8.0.10REL7_4_STABLE7.4.15REL7_3_STABLE7.3.17 | No linked thread | Nov 22, 2006 |
| Committer | Get rid of retail definitions of HAVE_STRDUP and HAVE_VSNPRINTF in some of the Windows-only makefiles; the correct place to assert these things is pg_config.h.win32. Per bug #2677. 617f123f | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | Translate Windows' GMT Standard Time/GMT Daylight Time zones to zic's Europe/London, rather than Europe/Dublin as before. This seems a less surprising choice, particularly with respect to dates before 1948. Original suggestion was to translate to straight GMT, but this seems wrong given that these zones *are* DST-aware. Per offlist discussion with Magnus. d735804f | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | Prevent intratransaction memory leak when a subtransaction is aborted in the middle of executing a SPI query. This doesn't entirely fix the problem of memory leakage in plpgsql exception handling, but it should get rid of the lion's share of leakage. 7ec1c5a8 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | Suppress timezone (%Z) part of timestamp display when running on Windows, because on that platform strftime produces localized zone names in varying encodings. Even though it's only in a comment, this can cause encoding errors when reloading the dump script. Per suggestion from Andreas Seltenreich. Also, suppress %Z on Windows in the %s escape of log_line_prefix ... not sure why this one is different from the other two, but it shouldn't be. 5fc2d7e4 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | Fix plpython to work (or at least pass its regression tests) with python 2.5. This involves fixing several violations of the published spec for creating PyTypeObjects, and adding another regression test expected output for yet another variation of error message spelling. c714e5cb | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | On systems that have setsid(2) (which should be just about everything except Windows), arrange for each postmaster child process to be its own process group leader, and deliver signals SIGINT, SIGTERM, SIGQUIT to the whole process group not only the direct child process. This provides saner behavior for archive and recovery scripts; in particular, it's possible to shut down a warm-standby recovery server using "pg_ctl stop -m immediate", since delivery of SIGQUIT to the startup subprocess will result in killing the waiting recovery_command. Also, this makes Query Cancel and statement_timeout apply to scripts being run from backends via system(). (There is no support in the core backend for that, but it's widely done using untrusted PLs.) Per gripe from Stephen Harris and subsequent discussion. 3ad0728c | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | If SSL negotiation fails and SSLMODE is 'prefer', then retry without SSL. Negotiation failure is only likely to happen if one side or the other is misconfigured, eg. bad client certificate. I'm not 100% convinced that a retry is really the best thing, hence not back-patching this fix for now. Per gripe from Sergio Cinos. bcd713a6 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | Change the default setting for log_min_error_statement to ERROR. Per recent discussion in which majority opinion was that this is a more widely useful setting than the previous default of PANIC. 414c7a53 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | Adjust elog.c so that elog(FATAL) exits (including cases where ERROR is promoted to FATAL) end in exit(1) not exit(0). Then change the postmaster to allow exit(1) without a system-wide panic, but not for the startup subprocess or the bgwriter. There were a couple of places that were using exit(1) to deliberately force a system-wide panic; adjust these to be exit(2) instead. This fixes the problem noted back in July that if the startup process exits with elog(ERROR), the postmaster would think everything is hunky-dory and proceed to start up. Alternative solutions such as trying to run the entire startup process as a critical section seem less clean, primarily because of the fact that a fair amount of startup code is shared by all postmaster children in the EXEC_BACKEND case. We'd need an ugly special case somewhere near the head of main.c to make it work if it's the child process's responsibility to determine what happens; and what's the point when the postmaster already treats different children differently? e82d9e62 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 21, 2006 |
| Committer | More MSVC build fixes: aaef29b3 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 20, 2006 |
| CommitterBackported | When truncating a relation in-place (eg during VACUUM), do not try to unlink any no-longer-needed segments; just truncate them to zero bytes and leave the files in place for possible future re-use. This avoids problems when the segments are re-used due to relation growth shortly after truncation. Before, the bgwriter, and possibly other backends, could still be holding open file references to the old segment files, and would write dirty blocks into those files where they'd disappear from the view of other processes. 1a5c450f | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+20 more | No linked thread | Nov 20, 2006 |
| CommitterBackported | Repair problems with hash indexes that span multiple segments: the hash code's preference for filling pages out-of-order tends to confuse the sanity checks in md.c, as per report from Balazs Nagy in bug #2737. The fix is to ensure that the smgr-level code always has the same idea of the logical EOF as the hash index code does, by using ReadBuffer(P_NEW) where we are adding a single page to the end of the index, and using smgrextend() to reserve a large batch of pages when creating a new splitpoint. The patch is a bit ugly because it avoids making any changes in md.c, which seems the most prudent approach for a backpatchable beta-period fix. After 8.3 development opens, I'll take a look at a cleaner but more invasive patch, in particular getting rid of the now unnecessary hack to allow reading beyond EOF in mdread(). d68efb3f | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+21 more | No linked thread | Nov 19, 2006 |
| Committer | Clarify description of CIDR-address column of pg_hba.conf, to discourage people from trying notations like '10.6/16', which is accepted but does not mean what you probably think. Per example from Paul Forgey. fa3d622c | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 17, 2006 |
| CommitterBackported | Repair two related errors in heap_lock_tuple: it was failing to recognize cases where we already hold the desired lock "indirectly", either via membership in a MultiXact or because the lock was originally taken by a different subtransaction of the current transaction. These cases must be accounted for to avoid needless deadlocks and/or inappropriate replacement of an exclusive lock with a shared lock. Per report from Clarence Gardner and subsequent investigation. 4f335a3d | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+19 more | No linked thread | Nov 17, 2006 |
| Committer | Suppress a few 'uninitialized variable' warnings that gcc emits only at -O3 or higher (presumably because it inlines more things). Per gripe from Mark Mielke. a46ca619 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 11, 2006 |
| Committer | Fix pg_get_serial_sequence(), which could incorrectly return the name of an index on a serial column, rather than the name of the associated sequence. Fallout from recent changes in dependency setup for serials. Per bug #2732 from Basil Evseenko. d13f372a | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 10, 2006 |
| Committer | Clean up some misleading references to %p being a full path, per Simon. 792d6edd | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 10, 2006 |
| Committer | Improve formatting of PQexecParams argument descriptions, per Theo Kramer. 1456c5b5 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 10, 2006 |
| Committer | Emphasize that immutable and stable functions are not allowed to modify the database. xfunc.sgml was already pretty definite on the point, but it doesn't hurt to make it clear here too. 2c2faa17 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 10, 2006 |
| Committer | Fix errors in key_column_usage.position_in_unique_constraint column recently added to information_schema (per a SQL2003 addition). The original coding failed if a referenced column participated in more than one pg_constraint entry. Also, it did not work if an FK relied directly on a unique index without any constraint syntactic sugar --- this case is outside the SQL spec, but PG has always supported it, so it's reasonable for our information_schema to handle it too. Per bug#2750 from Stephen Haberman. 33556af7 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 10, 2006 |
| Committer | Fix set_joinrel_size_estimates() to estimate outer-join sizes more accurately: we have to distinguish the effects of the join's own ON clauses from the effects of pushed-down clauses. Failing to do so was a quick hack long ago, but it's time to be smarter. Per example from Thomas H. d19798e5 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 10, 2006 |
| Committer | Change Windows rename and unlink substitutes so that they time out after 30 seconds instead of retrying forever. Also modify xlog.c so that if it fails to rename an old xlog segment up to a future slot, it will unlink the segment instead. Per discussion of bug #2712, in which it became apparent that Windows can handle unlinking a file that's being held open, but not renaming it. dcbdf9b1 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 08, 2006 |
| Committer | Modify aset.c to track the next intended block allocation size explicitly. The former coding relied on the actual allocated size of the last block, which made it behave strangely if the first allocation in a context was larger than ALLOC_CHUNK_LIMIT: subsequent allocations would be referenced to that and not to the intended series of block sizes. Noted while studying a memory wastage gripe from Tatsuo. 808b3190 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 08, 2006 |
| Committer | Tweak accumArrayResult() to double the size of its working arrays when more space is needed, instead of incrementing by a fixed amount; the old method wastes lots of space and time when the ultimate size is large. Per gripe from Tatsuo. fc5eb3f6 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 08, 2006 |
| Committer | Fix performance issues in replace_text(), replace_text_regexp(), and text_to_array(): they all had O(N^2) behavior on long input strings in multibyte encodings, because of repeated rescanning of the input text to identify substrings whose positions/lengths were computed in characters instead of bytes. Fix by tracking the current source position as a char pointer as well as a character-count. Also avoid some unnecessary palloc operations. text_to_array() also leaked memory intracall due to failure to pfree temporary strings. Per gripe from Tatsuo Ishii. a5cf12e2 | master8.2rc1REL_19_STABLE8.2rc1REL_18_STABLE8.2rc1REL_17_STABLE8.2rc1REL_16_STABLE8.2rc1REL_15_STABLE8.2rc1REL_14_STABLE8.2rc1REL_13_STABLE8.2rc1+18 more | No linked thread | Nov 08, 2006 |
| CommitterBackported | Repair bug #2694 concerning an ARRAY[] construct whose inputs are empty sub-arrays. Per discussion, if all inputs are empty arrays then result must be an empty array too, whereas a mix of empty and nonempty arrays should (and already did) draw an error. In the back branches, the construct was strict: any NULL input immediately yielded a NULL output; so I left that behavior alone. HEAD was simply ignoring NULL sub-arrays, which doesn't seem very sensible. For lack of a better idea it now treats NULL sub-arrays the same as empty ones. f0395d50 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+21 more | No linked thread | Nov 06, 2006 |
| Committer | Remove temporary Windows-specific debugging code; it seems the problem with fopen() not using FILE_SHARE_DELETE was indeed the bug we were after, given lack of recent reports. 36e012e7 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 06, 2006 |
| Committer | Update release notes in preparation for RC1. 9c3f24bb | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 06, 2006 |
| Committer | Revert to the pre-8.2 method of probing for libm, that is, always include it if it links properly. It seems too risky to assume that standard functions like pow() are not special-cased by the compiler. Per report from Andreas Lange that build fails on Solaris cc compiler with -fast. Even though we don't consider that a supported option, I'm worried that similar issues will arise with other compilers. 02f37bd8 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 06, 2006 |
| Committer | Get rid of some unnecessary dependencies on DataDir: wherever possible, the backend should rely on its working-directory setting instead. Also do some message-style police work in contrib/adminpack. 74686b6d | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 06, 2006 |
| CommitterBackported | Fix recently-identified PITR recovery hazard: the base backup could contain stale relcache init files (pg_internal.init), and there is no mechanism for updating them during WAL replay. Easiest solution is just to delete the init files at conclusion of startup, and let the first backend started in each database take care of rebuilding the init file. Simon Riggs and Tom Lane. 76d5667b | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+19 more | No linked thread | Nov 05, 2006 |
| Committer | Fix recently-understood problems with handling of XID freezing, particularly in PITR scenarios. We now WAL-log the replacement of old XIDs with FrozenTransactionId, so that such replacement is guaranteed to propagate to PITR slave databases. Also, rather than relying on hint-bit updates to be preserved, pg_clog is not truncated until all instances of an XID are known to have been replaced by FrozenTransactionId. Add new GUC variables and pg_autovacuum columns to allow management of the freezing policy, so that users can trade off the size of pg_clog against the amount of freezing work done. Revise the already-existing code that forces autovacuum of tables approaching the wraparound point to make it more bulletproof; also, revise the autovacuum logic so that anti-wraparound vacuuming is done per-table rather than per-database. initdb forced because of changes in pg_class, pg_database, and pg_autovacuum catalogs. Heikki Linnakangas, Simon Riggs, and Tom Lane. 48188e16 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 05, 2006 |
| Committer | Add note about space usage of 'manual' approach to clustering, per suggestion from Sergey Koposov. Also some other minor editing. 10c70b86 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 04, 2006 |
| CommitterBackported | Correct documentation error: in 8.1 and 8.2, %p in archive and restore command strings inserts relative not absolute path of file to process. This is a side-effect of 2005-07-04 change that makes the server use relative paths in general. Noted by Bernd Helmle. 6fada498 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+19 more | No linked thread | Nov 04, 2006 |
| Committer | Mention 'void' as the proper return type when there's nothing to return, per suggestion from Joachim Wieland. 17a814ca | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 03, 2006 |
| CommitterBackported | Fix "failed to re-find parent key" btree VACUUM failure by tweaking _bt_pagedel to recover from the failure: just search the whole parent level if searching to the right fails. This does nothing for the underlying problem that index keys became out-of-order in the grandparent level. However, we believe that there is no other consequence worse than slightly inefficient searching, so this narrow patch seems like the safest solution for the back branches. 6f48f848 | REL8_1_STABLE8.1.6REL8_0_STABLE8.0.10REL7_4_STABLE7.4.15 | No linked thread | Nov 01, 2006 |
| Committer | Fix "failed to re-find parent key" btree VACUUM failure by revising page deletion code to avoid the case where an upper-level btree page remains "half dead" for a significant period of time, and to block insertions into a key range that is in process of being re-assigned to the right sibling of the deleted page's parent. This prevents the scenario reported by Ed L. wherein index keys could become out-of-order in the grandparent index level. 70ce5c90 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 01, 2006 |
| CommitterBackported | pg_restore failed on tar-format archives if they contained large objects (blobs) with comments, per bug #2727 from Konstantin Pelepelin. Mea culpa for not having tested this case. Back-patch to 8.1; prior branches don't dump blob comments at all. 19d0c46d | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+19 more | No linked thread | Nov 01, 2006 |
| Committer | Update zic database to tzdata2006n. c1fdbba4 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Nov 01, 2006 |
| Committer | Fix misstatement about the results of using -1 with BEGIN. 7e63445d | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Oct 31, 2006 |
| Committer | expression_tree_walker failed to let walker function see the immediate child node of a SubLink or SubPlan testexpr field. Bug resulted from replacing the old lefthand/exprs list fields with a simple expression field, and not remembering that expression_tree_walker is coded to save a few cycles by recursing directly to self on list fields (on the assumption the walker isn't interested in List nodes per se). On non-list fields it must of course call the walker. Possibly that hack isn't worth the risk of more such bugs, but I'll leave it be for now. Per bug report from James Robinson. 76d5f6f0 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Oct 25, 2006 |
| Committer | Fix check for whether a clauseless join has to be forced in the presence of outer joins. Originally it was only looking for overlap of the righthand side of a left join, but we have to do it on the lefthand side too. Per example from Jean-Pierre Pelletier. 4df8de7a | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Oct 24, 2006 |
| Committer | Tweak zic.c to compile cleanly on MSVC: use CopyFile instead of CopyFileEx. This avoids a warning about the function not being present on older Windows versions. Magnus Hagander d8221dfa | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Oct 24, 2006 |
| Committer | Rewrite discussion of ORDER BY to emphasize the SQL99 expression case instead of the SQL92 output-column-ID case. cfb3a428 | master8.2beta3REL_19_STABLE8.2beta3REL_18_STABLE8.2beta3REL_17_STABLE8.2beta3REL_16_STABLE8.2beta3REL_15_STABLE8.2beta3REL_14_STABLE8.2beta3REL_13_STABLE8.2beta3+18 more | No linked thread | Oct 24, 2006 |
| Committer | Stamp 8.2beta2. 66f5264a | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 23, 2006 |
| Committer | Fix broken markup. 28b14b03 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 23, 2006 |
| Committer | Remove an unnecessary HOLD_INTERRUPTS/RESUME_INTERRUPTS pair. This was required back when RESUME_INTERRUPTS could actually execute ProcessInterrupts, but that hasn't been true since 2001... 954c1813 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 22, 2006 |
| Committer | Code cleanup for pg_buffercache, from Mark Kirkwood. bd95c749 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 22, 2006 |
| Committer | Various MSVC build fixes from Magnus; also remove stray Windows newlines. c2c0b140 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 22, 2006 |
| Committer | Some desultory copy-editing. fa5d08fb | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 22, 2006 |
| Committer | Some marginal editorial improvements and updates in the tutorial. ed193933 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 21, 2006 |
| Committer | Further release-note editorialization. 890ce397 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 21, 2006 |
| Committer | Editorial improvements for recent plpython doc updates. 425417d4 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 21, 2006 |
| Committer | Rewrite discussion of string constant syntax to bring it into line with the politically correct view that backslash escapes are deprecated. a003bd07 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 21, 2006 |
| Committer | Make index entry more specific. c9c1c4ed | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 21, 2006 |
| Committer | Update release notes to current, and do a pass of editorial corrections. 554032b3 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 20, 2006 |
| CommitterBackported | Back-patch second version of AIX getaddrinfo fix. 8a6ed093 | REL8_1_STABLE8.1.6REL8_0_STABLE8.0.10REL7_4_STABLE7.4.15 | No linked thread | Oct 20, 2006 |
| Committer | Marginal code cleanups in pg_logdir_ls: use ReadDir not readdir, and avoid scribbling on its result (might be safe but why risk it) 7feedda0 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 20, 2006 |
| Committer | Try to fix the AIX getaddrinfo mess in a way that works on all versions. Going to wait for buildfarm results before backpatching, this time. 33af0876 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Clarify note about interaction of log_statement logging with errors. Remove obsolete note about logging of statements generated by plpgsql function execution ... that doesn't happen anymore. 0549ba82 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Marginal improvement in logging: include the function name when logging a fastpath function call. 1b84441a | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Rename our substitute qsort to pg_qsort at the link-symbol level (but provide a macro so code can still just say qsort). Avoids linker warnings on pickier platforms such as Darwin, and outright failure on MSVC. 4887f5f9 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Add externs for optarg/optind where apparently needed. Per Magnus. 443abd83 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Handle missing M_PI the same way we've been doing in the core code, instead of inserting an MSVC dependency. 28997903 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Further MSVC portability fixes from Magnus. f6e00ae1 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Fix a couple of places that were assuming debug_query_string couldn't be NULL ... seems an unsafe assumption. 2315df21 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Make sure that debug_query_string contains the original query text, if available (which it usually should be), during processing of Bind and Execute protocol messages. This improves usefulness of log_min_error_statement logging for extended query protocol. 68189220 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Clean up local redeclarations of variables with DLLIMPORT, per report from Magnus that MSVC complains about this. def651f4 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| Committer | Simplify contrib Makefiles by removing unnecessary SRCS macro, per Magnus. 72ec567a | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 19, 2006 |
| CommitterBackported | Work around reported problem that AIX's getaddrinfo() doesn't seem to zero sin_port in the returned IP address struct when servname is NULL. This has been observed to cause failure to bind the stats collection socket, and could perhaps cause other issues too. Per reports from Brad Nicholson and Chris Browne. dbb397f3 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+21 more | No linked thread | Oct 19, 2006 |
| Committer | Add some code to CREATE DATABASE to check for pre-existing subdirectories that conflict with the OID that we want to use for the new database. This avoids the risk of trying to remove files that maybe we shouldn't remove. Per gripe from Jon Lapham and subsequent discussion of 27-Sep. 1e758d52 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 18, 2006 |
| Committer | Fix up timetz input so that a date is required only when the specified timezone actually has a daylight-savings rule. This avoids breaking cases that used to work because they went through the DecodePosixTimezone code path. Per contrib regression failures (mea culpa for not running those yesterday...). Also document the already-applied change to allow GMT offsets up to 14 hours. 877f08da | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 18, 2006 |
| Committer | Fix up some problems in handling of zic-style time zone names in datetime input routines. Remove the former "DecodePosixTimezone" function in favor of letting the zic code handle POSIX-style zone specs (see tzparse()). In particular this means that "PST+3" now means the same as "-03", whereas it used to mean "-11" --- the zone abbreviation is effectively just a noise word in this syntax. Make sure that all named and POSIX-style zone names will be parsed as a single token. Fix long-standing bogosities in printing and input of fractional-hour timezone offsets (since the tzparse() code will accept these, we'd better make 'em work). Also correct an error in the original coding of the zic-zone-name patch: in "timestamp without time zone" input, zone names are supposed to be allowed but ignored, but the coding was such that the zone changed the interpretation anyway. 022fd996 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 17, 2006 |
| Committer | Fix unexpected side-effect of changes for case insensitivity of timezone names. 14914e0d | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 17, 2006 |
| Committer | Arrange for timezone names to be recognized case-insensitively; for example SET TIME ZONE 'america/new_york' works now. This seems a good idea on general user-friendliness grounds, and is part of the solution to the timestamp-input parsing problems I noted recently. 0b35b01e | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 16, 2006 |
| Committer | Redesign the patch for allocation of shmem space and LWLocks for add-on modules; the first try was not usable in EXEC_BACKEND builds (e.g., Windows). Instead, just provide some entry points to increase the allocation requests during postmaster start, and provide a dedicated LWLock that can be used to synchronize allocation operations performed by backends. Per discussion with Marc Munro. e0dece12 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 15, 2006 |
| Committer | Adjust plperl to ensure that all strings and hash keys passed to Perl are marked as UTF8 when the database encoding is UTF8. This should avoid inconsistencies like that exhibited in bug #2683 from Vitali Stupin. a3dff39c | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 15, 2006 |
| Committer | Code review for --no-data-for-failed-tables patch. Instead of trashing one of the program's core data structures, make use of the existing ability to selectively exclude TOC items by ID. Slightly more code but much less likely to create future maintenance problems. 1314983f | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 14, 2006 |
| Committer | Code and docs review for ALTER TABLE INHERIT/NO INHERIT patch. f58eac82 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 13, 2006 |
| CommitterBackported | Fix typo in version number. 7de6cf27 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+19 more | No linked thread | Oct 13, 2006 |
| Committer | Stamp 7.3.16. 53d7eece | REL7_3_STABLE7.3.16 | No linked thread | Oct 12, 2006 |
| Committer | Stamp 7.4.14. 62f9cbf4 | REL7_4_STABLE7.4.14 | No linked thread | Oct 12, 2006 |
| Committer | Stamp 8.0.9. 9a0d9968 | REL8_0_STABLE8.0.9 | No linked thread | Oct 12, 2006 |
| Committer | Stamp 8.1.5. 87d57b6c | REL8_1_STABLE8.1.5 | No linked thread | Oct 12, 2006 |
| Committer | Sync 8.1 pg_config.h.in with expected autoheader output (looks like someone did this manually last time ...) 424157a8 | REL8_1_STABLE8.1.5 | No linked thread | Oct 12, 2006 |
| CommitterBackported | Update release notes for SQL functions vs triggers fix. 0c998388 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+20 more | No linked thread | Oct 12, 2006 |
| CommitterBackported | Fix mishandling of after-trigger state when a SQL function returns multiple rows --- if the surrounding query queued any trigger events between the rows, the events would be fired at the wrong time, leading to bizarre behavior. Per report from Merlin Moncure. d2e17e1d | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+20 more | No linked thread | Oct 12, 2006 |
| Committer | Use Min() instead of min() in qsort, for consistency and to avoid redefined-macro warnings on some platforms. Per gripe from Hiroshi Saito. b38900c7 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 12, 2006 |
| Committer | Remove somebody's ill-considered free() call, per report from Chander Ganesan. No, I do not care whether Coverity considers this a memory leak. It's entirely not worth the code space to do it correctly. a50606de | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 12, 2006 |
| CommitterBackported | A bit of copy-editing on back-branch release notes. 953c8564 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+22 more | No linked thread | Oct 11, 2006 |
| CommitterBackported | Repair incorrect check for coercion of unknown literal to ANYARRAY, a bug I introduced in 7.4.1 :-(. It's correct to allow unknown to be coerced to ANY or ANYELEMENT, since it's a real-enough data type, but it most certainly isn't an array datatype. This can cause a backend crash but AFAICT is not exploitable as a security hole. Per report from Michael Fuhr. 772c5ba3 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+21 more | No linked thread | Oct 11, 2006 |
| CommitterBackported | CREATE TABLE ... LIKE ... should mark the columns it creates with attislocal = true, since they are not really inherited but merely copied from the original table. I'm not sure if there are any cases where it makes a real difference given the existing uses of the flag, but wrong is wrong. This was fixed in passing in HEAD by the LIKE INCLUDING CONSTRAINTS patch, but never back-patched. 97fc0f6e | REL8_1_STABLE8.1.5REL8_0_STABLE8.0.9REL7_4_STABLE7.4.14 | No linked thread | Oct 11, 2006 |
| Committer | Code review for LIKE INCLUDING CONSTRAINTS patch --- improve comments, don't cheat on the raw-vs-cooked status of a constraint. 8f2f180f | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 11, 2006 |
| CommitterBackported | Fix psql \d commands to behave properly when a pattern using regex | is given. Formerly they'd emit '^foo|bar$' which is wrong because the anchors are parsed as part of the alternatives; must emit '^(foo|bar)$' to get expected behavior. Same as bug found previously in similar_escape(). Already fixed in HEAD, this is just back-porting the part of that patch that was a bug fix. 9c2b6ec6 | REL8_1_STABLE8.1.5REL8_0_STABLE8.0.9REL7_4_STABLE7.4.14REL7_3_STABLE7.3.16 | No linked thread | Oct 10, 2006 |
| Committer | Revise psql pattern-matching switches as per discussion. The rule is now to process all inclusion switches then all exclusion switches, so that the behavior is independent of switch ordering. Use of -T does not cause non-table objects to be suppressed. And the patterns are now interpreted the same way psql's \d commands do it, rather than as pure regex commands; this allows for example -t schema.tab to do what it should have been doing all along. Re-enable the --blobs switch to do something useful, ie, add back blobs into a dump they were otherwise suppressed from. 24e97528 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 09, 2006 |
| Committer | Improve description of the pattern matching rules used by psql's \d commands (and soon by pg_dump). 77d2b1b6 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 09, 2006 |
| Committer | Move processNamePattern into dumputils.c in preparation for using it in pg_dump as well as psql. Since psql already uses dumputils.c, while there's not any code sharing in the other direction, this seems the easiest way. Also, fix misinterpretation of patterns using regex | by adding parentheses (same bug found previously in similar_escape()). This should be backpatched. 39ed8c40 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 09, 2006 |
| CommitterBackported | Fix back-branch pg_regress scripts to try the "canonical" expected file if we tried a variant file from resultmap and it didn't match. This is already done in HEAD's C-code version, and is needed because OpenBSD has recently migrated to a more standard handling of float underflow --- see buildfarm results from emu. b7edaccc | REL8_1_STABLE8.1.5REL8_0_STABLE8.0.9REL7_4_STABLE7.4.14REL7_3_STABLE7.3.16 | No linked thread | Oct 09, 2006 |
| Committer | Update Darwin dlopen() support to avoid deprecation warnings with latest Apple developer tools. We now use dlopen directly if available, and fall back to the older code if not. Chris Campbell c50b36d2 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 08, 2006 |
| Committer | On Windows, we know the backend stack size limit because we have to specify it explicitly in backend/Makefile. Arrange for this value to be known by get_stack_depth_rlimit() too. Per suggestion from Magnus. c7611f99 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 08, 2006 |
| CommitterBackported | Fix ancient oversight in psql's \d pattern processing code: when seeing two quote chars inside quote marks, should emit one quote *and stay in inquotes mode*. No doubt the lack of reports of this have something to do with the poor documentation of the feature ... 06290309 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+22 more | No linked thread | Oct 07, 2006 |
| Committer | Fix thinko in comment. 95389382 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 07, 2006 |
| Committer | When planning a query at Bind time, be careful to pass the correct query_list into the Portal, ie, the one seen and possibly modified by the planner. My fault :-( Per report from Sergey Koposov. dc9142f4 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 07, 2006 |
| Committer | On platforms that have getrlimit(RLIMIT_STACK), use it to ensure that max_stack_depth is not set to an unsafe value. 71a6f8b8 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 07, 2006 |
| Committer | Adjust HINT for stack depth limit to mention checking the underlying platform limit, rather than just blindly raising max_stack_depth. Also, tweak the code to work properly if someone sets max_stack_depth to more than 2Gb, which guc.c will allow on a 64-bit machine. 1c160291 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 07, 2006 |
| CommitterBackported | Fix string_to_array() to correctly handle the case where there are overlapping possible matches for the separator string, such as string_to_array('123xx456xxx789', 'xx'). Also, revise the logic of replace(), split_part(), and string_to_array() to avoid O(N^2) work from redundant searches and conversions to pg_wchar format when there are N matches to the separator string. Backpatched the full patch as far as 8.0. 7.4 also has the bug, but the code has diverged a lot, so I just went for a quick-and-dirty fix of the bug itself in that branch. 452fa214 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+21 more | No linked thread | Oct 07, 2006 |
| Committer | Fix bcc32.mak to create and remove pg_config_os.h properly. Apparently win32.mak got patched for this, but not bcc32.mak. 11d4d424 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 06, 2006 |
| CommitterBackported | Fix SysCacheGetAttr() to handle the case where the specified syscache has not been initialized yet. This can happen because there are code paths that call SysCacheGetAttr() on a tuple originally fetched from a different syscache (hopefully on the same catalog) than the one specified in the call. It doesn't seem useful or robust to try to prevent that from happening, so just improve the function to cope instead. Per bug#2678 from Jeff Trout. The specific example shown by Jeff is new in 8.1, but to be on the safe side I'm backpatching 8.0 as well. We could patch 7.x similarly but I think that's probably overkill, given the lack of evidence of old bugs of this ilk. 6ea8f495 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+20 more | No linked thread | Oct 06, 2006 |
| Committer | Cleanup for pglz_compress code: remove dead code, const-ify API of remaining functions, simplify pglz_compress's API to not require a useless data copy when compression fails. Also add a check in pglz_decompress that the expected amount of data was decompressed. 378c79dc | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 05, 2006 |
| Committer | Make use of qsort_arg in several places that were formerly using klugy static variables. This avoids any risk of potential non-reentrancy, and in particular offers a much cleaner workaround for the Intel compiler bug that was affecting ginutil.c. e378f82e | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 05, 2006 |
| Committer | Work around buggy strtod on (some versions of?) IRIX. Combination of proposed patches from John Jorgensen and Steve Singer. b2c04d5e | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 05, 2006 |
| Committer | Second try at fixing libedit configuration for Bob Friesenhahn. Buildfarm results from 'gazelle' show that there are indeed libedit versions for which history.h is a needed header, even though it's apparently been dropped entirely in other versions. Grumble. 9e6c3582 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 05, 2006 |
| Committer | Adjust configure's handling of libedit to not look for a history.h file. Per Bob Friesenhahn's report, this file is not supplied by some versions of libedit, and even when it is supplied it seems to be just a link to readline.h, so we don't need to include it anyway. Also, ensure that we won't try to use a too-old version of Bison. The previous coding would bleat but then use it anyway; better to invoke the 'missing' script if any grammar files need to be rebuilt. bdef2bf2 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 04, 2006 |
| Committer | Fix initdb's logic for picking shared_buffers/max_fsm_pages, which had gotten rather thoroughly whacked out by careless recent changes: the intended ratio between the two was off by a lot, and the minimum number of shared buffers tried had increased by a lot. Problem exposed by failures on buildfarm members with smaller SHMMAX values. ff400571 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 04, 2006 |
| Committer | Fix comment to agree with presentation. af0af42f | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 04, 2006 |
| Committer | Improve error messages from to_tsquery per yesterday's discussion: provide the bad input, and be sure to mention that we are talking about a tsearch query. c48f2e31 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 04, 2006 |
| Committer | Add qsort and qsort_arg to MSVC list of src/port files. 0d2aed94 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 04, 2006 |
| Committer | Switch over to using our own qsort() all the time, as has been proposed repeatedly. Now that we don't have to worry about memory leaks from glibc's qsort, we can safely put CHECK_FOR_INTERRUPTS into the tuplesort comparators, as was requested a couple months ago. Also, get rid of non-reentrancy and an extra level of function call in tuplesort.c by providing a variant qsort_arg() API that passes an extra void * argument through to the comparison routine. (We might want to use that in other places too, I didn't look yet.) 6edd2b4a | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 03, 2006 |
| Committer | Rearrange MSVC errcode hack, fix incorrect _MSC_VER test. Magnus 0184c683 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 03, 2006 |
| Committer | Properly handle the case where strlcpy() exists in libc but isn't declared in the system headers. Per report from Bruce than some BSDen are like this. 1e05359f | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 02, 2006 |
| Committer | Improve documentation of configure's readline/libedit switches. 7ceec34a | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 01, 2006 |
| Committer | Make some marginal performance improvements in reportErrorPosition(), which turns out to be a dominant part of the runtime in scenarios involving lots of parse-time warnings (such as Stephen Frost's example of an INSERT with a lot of backslash-containing strings). There's not a whole lot we can do about the character-at-a-time scanning, but we can at least avoid traversing the query twice. db2dcf58 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 01, 2006 |
| Committer | Do a CHECK_FOR_INTERRUPTS after emitting a message of less than ERROR severity. This is to ensure the user can cancel a query that's spitting out lots of notice/warning messages, even if they're coming from a loop that doesn't otherwise contain a CHECK_FOR_INTERRUPTS. Per gripe from Stephen Frost. 8e4fe3ba | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 01, 2006 |
| CommitterBackported | date_trunc also accepts 'quarter'. Noted by Yoshihisa Nakano. e69c09c1 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+21 more | No linked thread | Oct 01, 2006 |
| Committer | Remove accented characters in comments, to avoid failures when this file is read with an incompatible client_encoding setting. Per report from Tim N. van der Leeuw. 363c8cf2 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Oct 01, 2006 |
| CommitterBackported | Fix overly enthusiastic Assert introduced in 8.1: it's expecting a CaseTestExpr, but forgot that the optimizer is sometimes able to replace CaseTestExpr by Const. 514ce7a3 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+19 more | No linked thread | Oct 01, 2006 |
| Committer | Suppress compiler warnings. 87cd901c | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 30, 2006 |
| Committer | uninstall script for sslinfo 8136041a | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 30, 2006 |
| Committer | uninstall script for pg_freespacemap ad5031fe | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 30, 2006 |
| Committer | uninstall script for pgrowlocks - Josh Drake 035599da | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 30, 2006 |
| Committer | Add uninstall script for adminpack - Josh Drake 8fd0e43c | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 30, 2006 |
| Committer | Allow assignment to array elements not contiguous with those already present; intervening positions are filled with nulls. This behavior is required by SQL99 but was not implementable before 8.2 due to lack of support for nulls in arrays. I have only made it work for the one-dimensional case, which is all that SQL99 requires. It seems quite complex to get it right in higher dimensions, and since we never allowed extension at all in higher dimensions, I think that must count as a future feature addition not a bug fix. 352a56ba | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 29, 2006 |
| Committer | Remove duplicate (and now incorrect) documentation for row-wise IS [NOT] NULL. Noted by Teodor. 673a573d | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 29, 2006 |
| Committer | Fix IS NULL and IS NOT NULL tests on row-valued expressions to conform to the SQL spec, viz IS NULL is true if all the row's fields are null, IS NOT NULL is true if all the row's fields are not null. The former coding got this right for a limited number of cases with IS NULL (ie, those where it could disassemble a ROW constructor at parse time), but was entirely wrong for IS NOT NULL. Per report from Teodor. f213131f | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 28, 2006 |
| Committer | Fix a couple other places that need to know about (some) src/port/ files explicitly. 062421de | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 28, 2006 |
| Committer | Oops, forgot that libpq needs extra steps to make use of src/port/ files. 85bbd549 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 27, 2006 |
| Committer | Replace strncpy with strlcpy in selected places that seem possibly relevant to performance. (A wholesale effort to get rid of strncpy should be undertaken sometime, but not during beta.) This commit also fixes dynahash.c to correctly truncate overlength string keys for hashtables, so that its callers don't have to anymore. c92f7e25 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 27, 2006 |
| Committer | Add strlcpy() to the set of functions supported by src/port/ when not available directly on the platform. Per discussion, this function is sufficiently widely recognized to be treated as standard. 996b203e | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 27, 2006 |
| Committer | Fix some misuses of strncat(). 1d45168f | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 27, 2006 |
| Committer | Remove separate strdup.h header file; it's redundant with port.h. 9ba40653 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 27, 2006 |
| Committer | Increase default value of effective_cache_size to 128MB, per discussion. 0f8fc35a | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 25, 2006 |
| Committer | Add a check to prevent overwriting valid data if smgrnblocks() gives a wrong answer, as has been seen to occur with a buggy Linux kernel. Not really our bug, but it's a simple test in a seldom-used control path, so might as well have a defense. ffae5cc5 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 25, 2006 |
| Committer | no-data-for-failed-tables is a pg_restore option, not a pg_dump option. 1f4841a9 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 25, 2006 |
| Committer | Fix notice message from DROP FUNCTION IF EXISTS, and improve message for DROP AGGREGATE IF EXISTS. Per report from Teodor. c232c8af | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 25, 2006 |
| Committer | Fix incorrect mapping of fopen mode 'a' in recently-added code to make fopen work safely on Windows. Magnus 1d096904 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 24, 2006 |
| Committer | Cause pg_regress to invoke the temporary postmaster as 'postgres' not 'postmaster', so as not to depend on the existence of the postmaster symlink. Also, implement postmaster-still-alive and postmaster-kill operations for Windows, per Magnus. f375d5d6 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 24, 2006 |
| Committer | Suppress useless warning on pre-XP versions of Windows. Magnus ccfafb47 | master8.2beta2REL_19_STABLE8.2beta2REL_18_STABLE8.2beta2REL_17_STABLE8.2beta2REL_16_STABLE8.2beta2REL_15_STABLE8.2beta2REL_14_STABLE8.2beta2REL_13_STABLE8.2beta2+18 more | No linked thread | Sep 24, 2006 |
| Committer | Fix pg_locks view to call advisory locks advisory locks, while preserving backward compatibility for anyone using the old userlock code that's now on pgfoundry --- locks from that code still show as 'userlock'. d40d3486 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 22, 2006 |
| Committer | Fix bugs in plpgsql and ecpg caused by assuming that isspace() would only return true for exactly the characters treated as whitespace by their flex scanners. Per report from Victor Snezhko and subsequent investigation. beca984e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 22, 2006 |
| Committer | Surely this temp buffer needn't be static. 6d0efd3a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 22, 2006 |
| Committer | Move incorrectly-located indexterm entry. ceefbbf7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 22, 2006 |
| Committer | Update timezone documentation to reflect current reality: instead of giving tables of known timezone names, refer the user to the system views. Joachim Wieland e893e875 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 22, 2006 |
| Committer | We're going to have to spell dotless i as plain i, because dotless i is not in the character set supported by DocBook nor standard HTML. (Sorry Volkan.) Also replace random character-set references by a pointer to the actual standard. 29e53ca3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 22, 2006 |
| Committer | Fix a lot of broken markup. 507447b5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 22, 2006 |
| Committer | Fix free space map to correctly track the total amount of FSM space needed even when a single relation requires more than max_fsm_pages pages. Also, make VACUUM emit a warning in this case, since it likely means that VACUUM FULL or other drastic corrective measure is needed. Per reports from Jeff Frost and others of unexpected changes in the claimed max_fsm_pages need. 9e936693 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 21, 2006 |
| Committer | Add documentation for new in-core advisory lock functions. Merlin Moncure 0efa510b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 20, 2006 |
| Committer | Fix bogus markup. c59487cf | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 20, 2006 |
| Committer | Change patternsel (LIKE/regex selectivity estimation) so that if there is a large enough histogram, it will use the number of matches in the histogram to derive a selectivity estimate, rather than the admittedly pretty bogus heuristics involving examining the pattern contents. I set 'large enough' at 100, but perhaps we should change that later. Also apply the same technique in contrib/ltree's <@ and @> estimator. Per discussion with Stefan Kaltenbrunner and Matteo Beccati. bfd1ffa9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 20, 2006 |
| Committer | Improve usage of effective_cache_size parameter by assuming that all the tables in the query compete for cache space, not just the one we are currently costing an indexscan for. This seems more realistic, and it definitely will help in examples recently exhibited by Stefan Kaltenbrunner. To get the total size of all the tables involved, we must tweak the handling of 'append relations' a bit --- formerly we looked up information about the child tables on-the-fly during set_append_rel_pathlist, but it needs to be done before we start doing any cost estimation, so push it into the add_base_rels_to_query scan. b74c5436 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 19, 2006 |
| Committer | Fix broken markup. 85fca79a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 19, 2006 |
| Committer | Fix shared library creation to work properly on AIX. Albe Laurenz 9b5e108e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 19, 2006 |
| Committer | Add built-in userlock manipulation functions to replace the former contrib functionality. Along the way, remove the USER_LOCKS configuration symbol, since it no longer makes any sense to try to compile that out. No user documentation yet ... mmoncure has promised to write some. Thanks to Abhijit Menon-Sen for creating a first draft to work from. 9b4cda0d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 18, 2006 |
| Committer | Documentation for VALUES lists. Joe Conway and Tom Lane b5b1eb80 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 18, 2006 |
| Committer | Fix problems with column name list of CREATE TABLE AS being applied to the input query's target list too soon, causing it to affect processing of ORDER BY in the input query. 2ad94d38 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 18, 2006 |
| Committer | Fix CREATE TABLE ... AS VALUES ... to work rather than Assert'ing; oversight in original implementation of VALUES. Also fix an oversight in recent addition of options to CREATE TABLE AS: they weren't getting propagated if the query was a set-operation such as UNION. 18a96377 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 18, 2006 |
| Committer | Change ANALYZE to take ShareUpdateExclusiveLock not AccessShareLock on the table being analyzed. This prevents two ANALYZEs from running concurrently on the same table and possibly suffering concurrent-update failures while trying to store their results into pg_statistic. The downside is that a database-wide ANALYZE executed within a transaction block will hold ShareUpdateExclusiveLock on many tables simultaneously, which could lead to concurrency issues or even deadlock against another such ANALYZE. However, this seems a corner case of less importance than getting unexpected errors from a foreground ANALYZE when autovacuum elects to analyze the same table concurrently. Per discussion. da7540b9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 17, 2006 |
| Committer | Marginal cleanup in arrangements for ensuring StrategyHintVacuum is cleared after an error during VACUUM. We have a PG_TRY block anyway around the only call sites, so just reset it in the CATCH clause instead of having AtEOXact_Buffers blindly do it during xact end. I think the old code was actively wrong for the case of a failure during ANALYZE inside a subtransaction --- the flag wouldn't get cleared until main transaction end. Probably not worth back-patching though. 2e5e856f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 17, 2006 |
| Committer | Rename the recently-added pg_timezonenames view to pg_timezone_abbrevs, and create a new view pg_timezone_names that provides information about the zones known in the 'zic' database. Magnus Hagander, with some additional work by Tom Lane. 5ff4f39c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 16, 2006 |
| Committer | Update timezone data files to release 2006k of the zic database. 7ed5df43 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 16, 2006 |
| Committer | Rename xml_valid() to xml_is_well_formed(), but provide a temporary alias with the old name for backwards compatibility. Per discussion, the old name is actively wrong because validity and well-formedness have different meanings in XML. 1246d797 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 16, 2006 |
| Committer | Define errcode as __msvc_errcode not __vc_errcode for MSVC builds, per Magnus. 801cbe33 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 16, 2006 |
| Committer | Fix some more uses of str[n]casecmp that should be pg_str[n]casecmp. ac733df6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 16, 2006 |
| Committer | Several fixes for MSVC build scripts, from Magnus. 83078e99 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 15, 2006 |
| Committer | Fix some uses of str[n]casecmp that should be pg_str[n]casecmp. aab964b3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 15, 2006 |
| Committer | Fix some uses of str[n]casecmp that should be pg_str[n]casecmp, per Magnus. a22de540 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 15, 2006 |
| Committer | Remove WINLDAPAPI decoration from ldap_start_tls_sA typedef, per Magnus. 0b52204f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 15, 2006 |
| Committer | Improve confusing comment for HeapTupleSatisfiesNow, per gripe from Greg Stark. 0498a08e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 15, 2006 |
| Committer | Add a couple of information functions to support direct checks on whether a schema is our own temp schema or another backend's temp schema, and use these in place of some former kluges in information_schema. Per my proposal of yesterday. 65ab9f4f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 14, 2006 |
| Committer | Fix missing markup. c2314b9e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 14, 2006 |
| Committer | Some small editorialization on the description of CREATE INDEX CONCURRENTLY. Greg Stark, some further tweaks by me. f8fe328c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 13, 2006 |
| Committer | Make logging of extended-protocol commands a bit more consistent, per discussion with Guillaume Smet. 0b4bf853 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 13, 2006 |
| Committer | Code review for patch to avoid second scan when vacuuming index-less table: avoid invoking LockBufferForCleanup without need, put out the same log message we would have before, minor code beautification. 33d3ad46 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 13, 2006 |
| Committer | Spell readme file's name correctly, per buildfarm reports. d3f54c79 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 12, 2006 |
| Committer | Move set_pglocale_pgservice() from path.c to exec.c, so that pulling in path.c does not in itself force linking of both exec.c and libintl. Should fix current ecpglib build failure on pickier platforms. 568b8016 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 11, 2006 |
| Committer | Move xml2's PG_MODULE_MAGIC block to the right source file, per Michael Fuhr. 7ce2ff2d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 11, 2006 |
| Committer | Rename the uninstall scripts for contrib/lo and contrib/tsearch2 to match the convention that foo's uninstall script is uninstall_foo.sql. Also, stop installing lo_test.sql, which really ought to be made into a regression test anyway (though it's unclear how to avoid a dependency on the current OID counter...) 41dcc65c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 11, 2006 |
| Committer | Add LDAP_LIBS_FE to $(libpq) for static or AIX linking, per Albe Laurenz. 0bdc18d5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 11, 2006 |
| Committer | Ooops, forgot to update ecpg comparison files to match source-code change. bb87c7b5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 11, 2006 |
| Committer | Fix omissions in contrib uninstall scripts. Michael Fuhr 9fc4c6b2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 11, 2006 |
| Committer | Fix unportable usage complained of by icc. Per buildfarm results. 1d0b7e71 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 11, 2006 |
| Committer | Install a cleaner solution to the AIX libpq linking problem, as per an earlier discussion. Centralize assumptions about what libpq depends on in one place in Makefile.global. I am unconvinced that this list is complete, but since ecpg seems to have gotten along with just these entries, we'll try it this way and see what happens. 4ee24cbb | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 10, 2006 |
| Committer | Fix dblink build for --enable-nls or --enable-openssl on AIX. Per Chris Browne. 723af8e6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 10, 2006 |
| Committer | Remove unhelpful/misleading advice about how to use SPI_saveplan(). Per gripe from Jack Orenstein. 17c371fe | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 10, 2006 |
| Committer | contrib/isn updates from Jeremy Kronuz. 5e08e496 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 10, 2006 |
| Committer | If we're going to advertise the array overlap/containment operators, we probably should make them work reliably for all arrays. Fix code to handle NULLs and multidimensional arrays, move it into arrayfuncs.c. GIN is still restricted to indexing arrays with no null elements, however. f5b4d9a9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 10, 2006 |
| Committer | Add missing documentation for new anyarray-overlap operator. 69b7c992 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 10, 2006 |
| Committer | Rename contrib contains/contained-by operators to @> and <@, per discussion. 684ad6a9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 10, 2006 |
| Committer | Rename contains/contained-by operators to @> and <@, per discussion that agreed these symbols are less easily confused. I made new pg_operator entries (with new OIDs) for the old names, so as to provide backward compatibility while making it pretty easy to remove the old names in some future release cycle. This commit only touches the core datatypes, contrib will be fixed separately. ba920e1c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 10, 2006 |
| Committer | Remove reference to contrib/mac, which isn't there anymore. 9cea5a82 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 09, 2006 |
| Committer | Add contrib/isn module for ISBN/ISSN/EAN13/etc product numbers, and remove the old isbn_issn module which is about to be obsoleted by EAN13. contrib/isn is by Germán Méndez Bravo. Our thanks to Garrett A. Wollman for having written the original isbn_issn module. dff84dc7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 09, 2006 |
| Committer | Revise OpenLDAP configuration and linking to work on more platforms than before. Albe Laurenz (but editorialized heavily by me, so if it doesn't work it's my fault). 42c17a6b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 09, 2006 |
| Committer | Fix pg_dump for recent change removing separate RULE privilege. I had thought this code could be left alone, but I was wrong: as-is it's failing to recognize when to use ALL for table privileges in 8.2. bf6b92d6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 08, 2006 |
| Committer | Put back plan-time check for trying to apply SELECT FOR UPDATE/SHARE to a relation on the nullable side of an outer join. I had removed this during the outer join planning rewrite a few months ago ... I think I intended to put it somewhere else, but forgot ... d09e79de | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 08, 2006 |
| Committer | Tweak the behavior of log_duration as proposed by Guillaume Smet: rather than being equivalent to setting log_min_duration_statement to zero, this option now forces logging of all query durations, but doesn't force logging of query text. Also, add duration logging coverage for fastpath function calls. b59d31c2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 08, 2006 |
| Committer | Clean up logging for extended-query-protocol operations, as per my recent proposal. Parameter logging works even for binary-format parameters, and logging overhead is avoided when disabled. 893632be | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 07, 2006 |
| Committer | Change processing of extended-Query mode so that an unnamed statement that has parameters is always planned afresh for each Bind command, treating the parameter values as constants in the planner. This removes the performance penalty formerly often paid for using out-of-line parameters --- with this definition, the planner can do constant folding, LIKE optimization, etc. After a suggestion by Andrew@supernews. 5983a1aa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 06, 2006 |
| Committer | Be more wary about which LIBS elements to pull into sslinfo link. Per buildfarm results. 389870b2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 06, 2006 |
| Committer | Fix sslinfo so it builds on Darwin. 433caead | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 05, 2006 |
| Committer | Silence compiler warning about signed vs unsigned chars. 94ec712c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 05, 2006 |
| Committer | Silence compiler warnings about incompatible function pointer types. 6b41d642 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 05, 2006 |
| Committer | Remove pgcrypto functions that were deprecated and slated for removal. Marko Kreen 7d4838dc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 05, 2006 |
| Committer | Get rid of the separate RULE privilege for tables: now only a table's owner can create or modify rules for the table. Do setRuleCheckAsUser() while loading rules into the relcache, rather than when defining a rule. This ensures that permission checks for tables referenced in a rule are done with respect to the current owner of the rule's table, whereas formerly ALTER TABLE OWNER would fail to update the permission checking for associated rules. Removal of separate RULE privilege is needed to prevent various scenarios in which a grantee of RULE privilege could effectively have any privilege of the table owner. For backwards compatibility, GRANT/REVOKE RULE is still accepted, but it doesn't do anything. Per discussion here: http://archives.postgresql.org/pgsql-hackers/2006-04/msg01138.php 7bae5a28 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 05, 2006 |
| Committer | Make Gen_fmgrtab.sh locale-proof. Per report from Marko Kreen and fix suggestion from Peter. d5eb52a5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 05, 2006 |
| Committer | Remove contrib modules that have been migrated to pgfoundry: adddepend, dbase, dbmirror, fulltextindex, mac, userlock; or abandoned: mSQL-interface, tips. af7d257e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 05, 2006 |
| Committer | Fix information_schema.key_column_usage to show correct value of position_in_unique_constraint (column newly added per SQL2003). Greg Mullane 44839ac0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 04, 2006 |
| Committer | Bring sslinfo Makefile up to speed for VPATH and pgxs builds. 5a248cd2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 04, 2006 |
| Committer | Disallow TRUNCATE when there are any pending after-trigger events for the target relation(s). There might be some cases where we could discard the pending event instead, but for the moment a conservative approach seems sufficient. Per report from Markus Schiltknecht and subsequent discussion. f8bbfad0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 04, 2006 |
| Committer | Change ILIKE to invoke lower() and then do plain LIKE comparison when working in a multibyte encoding. This fixes the problems exhibited in bug #1931 and other reports of ILIKE misbehavior in UTF8 encoding. It's a pretty grotty solution though --- should rethink how to do it after we install better locale support, someday. ad004ce7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 04, 2006 |
| Committer | Clean up some leftover problems in pgstattuple: remove unwanted and unportable elog(NOTICE) report, fix install/uninstall sequence. Itagaki Takahiro c9a64909 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 04, 2006 |
| Committer | Fix interval input parser so that fractional weeks and months are cascaded first to days and only what is leftover into seconds. This seems to satisfy the principle of least surprise given the general conversion to three-part interval values --- it was an oversight that these cases weren't dealt with in 8.1. Michael Glaesemann 57bfb27e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 04, 2006 |
| Committer | Code review for UPDATE SET (columnlist) patch. Make it handle as much of the syntax as this fundamentally dead-end approach can, in particular combinations of single and multi column assignments. Improve rather inadequate documentation and provide some regression tests. 091fe037 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 03, 2006 |
| Committer | Remove duplicated index entry. 676d1b4e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 03, 2006 |
| Committer | Fix broken markup. 4ae15f29 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 03, 2006 |
| Committer | Suppress 'unused variable' warnings created by latest commit. 6ca09ad7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 03, 2006 |
| Committer | Fix non-improvement of description of archive_timeout. archive_command is only invoked on completed WAL segments, period --- there's no 'by default' about it. 7781916a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 03, 2006 |
| Committer | Arrange for GetSnapshotData to copy live-subtransaction XIDs from the PGPROC array into snapshots, and use this information to avoid visits to pg_subtrans in HeapTupleSatisfiesSnapshot. This appears to solve the pg_subtrans-related context swap storm problem that's been reported by several people for 8.1. While at it, modify GetSnapshotData to not take an exclusive lock on ProcArrayLock, as closer analysis shows that shared lock is always sufficient. Itagaki Takahiro and Tom Lane 8fad2e3f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 03, 2006 |
| Committer | Apply a simple solution to the problem of making INSERT/UPDATE/DELETE RETURNING play nice with views/rules. To wit, have the rule rewriter rewrite any RETURNING clause found in a rule to produce what the rule's triggering query asked for in its RETURNING clause, in particular drop the RETURNING clause if no RETURNING in the triggering query. This leaves the responsibility for knowing how to produce the view's output columns on the rule author, without requiring any fundamental changes in rule semantics such as adding new rule event types would do. The initial implementation constrains things to ensure that there is exactly one, unconditionally invoked RETURNING clause among the rules for an event --- later we might be able to relax that, but for a post feature freeze fix it seems better to minimize how much invention we do. Per gripe from Jaime Casanova. 917bbebf | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Sep 02, 2006 |
| CommitterBackported | Clean up rather sloppy fix in HEAD for the ancient bug that CREATE CONVERSION didn't create a dependency from the new conversion to its schema. Back-patch to all supported releases. a83c71eb | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Aug 31, 2006 |
| Committer | Extend COPY to support COPY (SELECT ...) TO ... 85188ab8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 30, 2006 |
| Committer | Fix things so that fopen's, not only open's, pass FILE_SHARE_DELETE and other special flags on Windows. May fix intermittent 'Permission denied' errors. Magnus Hagander 3a6e2ff0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 30, 2006 |
| Committer | Dept. of second thoughts: if query fails part way through, shut down the pager before reporting the error. f6d7ef08 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 29, 2006 |
| Committer | Create a FETCH_COUNT parameter that causes psql to execute SELECT-like queries via a cursor, fetching a limited number of rows at a time and therefore not risking exhausting memory. A disadvantage of the scheme is that 'aligned' output mode will align each group of rows independently leading to odd-looking output, but all the other output formats work reasonably well. Chris Mair, with some additional hacking by moi. c2f60711 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 29, 2006 |
| Committer | Invent an assign-hook mechanism for psql variables similar to the one existing for backend GUC variables, and use this to eliminate repeated fetching/parsing of psql variables in psql's inner loops. In a trivial test with lots of 'select 1;' commands, psql's CPU time went down almost 10%, although of course the effect on total elapsed time was much less. Per discussion about how to ensure the upcoming FETCH_COUNT patch doesn't cost any performance when not being used. 0434c46d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 29, 2006 |
| Committer | Fix pgstat_report_waiting() to not dump core if called before pgstat_bestart() has been called; else any lock-block occurring during InitPostgres() is disastrous. I believe this explains recent wasp regression failure; at least it explains the crash I got while trying to duplicate the problem. I also made pgstat_report_activity() safe against the same scenario, just in case. The report_waiting hazard was created by my patch of 19-Aug to include waiting status in pg_stat_activity. 1832cefd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 28, 2006 |
| Committer | Partial fix for ecpg's VPATH problems. It compiles and successfully builds all the files needed for its regression tests, but the tests themselves fail because of diffs in the #line directives output by ecpg itself. Not sure what to do about that. ae28cfe6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 28, 2006 |
| Committer | Tweak trivial_subqueryscan() to consider a SubqueryScan's targetlist trivial if it contains either Vars referencing the corresponding subplan columns, or Consts equaling the corresponding subplan columns. This lets the planner eliminate the SubqueryScan in some cases generated by generate_setop_tlist(). fcba3b82 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 28, 2006 |
| Committer | Add new return codes SPI_OK_INSERT_RETURNING etc to the SPI API. Fix all the standard PLs to be able to return tuples from FOO_RETURNING statements as well as utility statements that return tuples. Also, fix oversight that SPI_processed wasn't set for a utility statement returning tuples. Per recent discussion. ea2e2635 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Add some notes about why it's not a bug that RI_FKey_check calls HeapTupleSatisfiesItself without doing LockBuffer first. This code is a bit fragile, but AFAICS it's not actually broken. 7a2fe85b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Add a function GetLockConflicts() to lock.c to report xacts holding locks that would conflict with a specified lock request, without actually trying to get that lock. Use this instead of the former ad hoc method of doing the first wait step in CREATE INDEX CONCURRENTLY. Fixes problem with undetected deadlock and in many cases will allow the index creation to proceed sooner than it otherwise could've. Per discussion with Greg Stark. e06fda0a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Move xact.c's partial support for Lists of TransactionIds into pg_list.h. Needed because lock.c is now going to use the same type of list. ca1fd0ea | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Make saveHistory work properly on OS X when HISTFILE is set to /dev/null. Per discussion with Martin Atukunda. 162e8f1f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 27, 2006 |
| Committer | Add the ability to create indexes 'concurrently', that is, without blocking concurrent writes to the table. Greg Stark, with a little help from Tom Lane. e093dcdd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 25, 2006 |
| Committer | Add some debug logging code to AllocateFile's failure path to log the specific Windows error code (GetLastError). This is a hopefully temporary hack to try to diagnose rare failures. Magnus Hagander f836c2e3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 24, 2006 |
| Committer | Optimize the case where a btree indexscan has current and mark positions on the same index page; we can avoid data copying as well as buffer refcount manipulations in this common case. Makes for a small but noticeable improvement in mergejoin speed. 08ae5edc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 24, 2006 |
| Committer | Ooops, ldap fix for win32 broke the non-win32 case. daebd525 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 22, 2006 |
| Committer | Fix encrypted-LDAP support so that it doesn't cause the server to fail entirely on older Windows platforms without the needed library function. Magnus Hagander 5405576a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 21, 2006 |
| Committer | Minor code rearrangement to save a few cycles in RI_FKey_check when the subject tuple is already deleted: we need not open the pk_rel until after we check that. d7c310c1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 21, 2006 |
| CommitterBackported | Remove obsolete tip about casting bool to int, per Taiki Yamaguchi. 548237fc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Aug 21, 2006 |
| Committer | Make the server track an 'XID epoch', that is, maintain higher-order bits of the transaction ID counter. Nothing is done with the epoch except to store it in checkpoint records, but this provides a foundation with which add-on code can pretend that XIDs never wrap around. This is a severely trimmed and rewritten version of the xxid patch submitted by Marko Kreen. Per discussion, the epoch counter seems the only part of xxid that really needs to be in the core server. 35af5422 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 21, 2006 |
| Committer | Fix all known problems with pg_dump's handling of serial sequences by abandoning the idea that it should say SERIAL in the dump. Instead, dump serial sequences and column defaults just like regular ones. Add a new backend command ALTER SEQUENCE OWNED BY to let pg_dump recreate the sequence-to-column dependency that was formerly created "behind the scenes" by SERIAL. This restores SERIAL to being truly "just a macro" consisting of component operations that can be stated explicitly in SQL. Furthermore, the new command allows sequence ownership to be reassigned, so that old mistakes can be cleaned up. 2b2a5072 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 21, 2006 |
| Committer | Suppress subquery pullup/pushdown when a subquery contains volatile functions in its targetlist, to avoid introducing multiple evaluations of volatile functions that textually appear only once. This is a slightly tighter version of Jaime Casanova's recent patch. fb9e56ee | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 19, 2006 |
| Committer | Add a 'waiting' column to pg_stat_activity to carry the same information that ps_status provides by appending 'waiting' to the PS display. This completes the project of making it feasible to turn off process title updates and instead rely on pg_stat_activity. Per my suggestion a few weeks ago. 9bf760f7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 19, 2006 |
| Committer | Add PQdescribePrepared, PQdescribePortal, and related functions to libpq to allow obtaining information about previously prepared statements and open cursors. Volkan Yazici 9a8920e1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 18, 2006 |
| Committer | Now that we've rearranged relation open to get a lock before touching the rel, it's easy to get rid of the narrow race-condition window that used to exist in VACUUM and CLUSTER. Did some minor code-beautification work in the same area, too. 7aa772f0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 18, 2006 |
| Committer | Implement archive_timeout feature to force xlog file switches to occur no more than N seconds apart. This allows a simple, if not very high performance, means of guaranteeing that a PITR archive is no more than N seconds behind real time. Also make pg_current_xlog_location return the WAL Write pointer, add pg_current_xlog_insert_location to return the Insert pointer, and fix pg_xlogfile_name_offset to return its results as a two-element record instead of a smashed-together string, as per recent discussion. e8ea9e95 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 17, 2006 |
| Committer | Fix an oversight in mergejoin planning: the planner would reject a mergejoin possibility where the inner rel was less well sorted than the outer (ie, it matches some but not all of the merge clauses that can work with the outer), if the inner path in question is also the overall cheapest path for its rel. This is an old bug, but I'm not sure it's worth back-patching, because it's such a corner case. Noted while investigating a test case from Peter Hardman. 92c651f8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 17, 2006 |
| Committer | Teach convert_subquery_pathkeys() to handle the case where the subquery's pathkey is a RelabelType applied to something that appears in the subquery's output; for example where the subquery returns a varchar Var and the sort order is shown as that Var coerced to text. This comes up because varchar doesn't have its own sort operator. Per example from Peter Hardman. 144b0ae8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 17, 2006 |
| Committer | Seems some C compilers think 'restrict' is a fully reserved word. Per buildfarm results from warthog. d6ac61cd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 16, 2006 |
| Committer | Add a hack so that get_type_io_data() can work from bootstrap.c's internal TypInfo table in bootstrap mode. This allows array_in and array_out to be used during early bootstrap, which eliminates the former obstacle to giving OUT parameters to built-in functions. 1395ac6c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 15, 2006 |
| Committer | Add hooks to allow debugging and performance measurement plugins to instrument PL/pgSQL. Korry Douglas 355865c5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 15, 2006 |
| Committer | Add server support for "plugin" libraries that can be used for add-on tasks such as debugging and performance measurement. This consists of two features: a table of "rendezvous variables" that allows separately-loaded shared libraries to communicate, and a new GUC setting "local_preload_libraries" that allows libraries to be loaded into specific sessions without explicit cooperation from the client application. To make local_preload_libraries as flexible as possible, we do not restrict its use to superusers; instead, it is restricted to load only libraries stored in $libdir/plugins/. The existing LOAD command has also been modified to allow non-superusers to LOAD libraries stored in this directory. abc3120e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 15, 2006 |
| Committer | Cause '*' and 'foo.*' notations to mark the referenced RTE(s) as requiring read permissions. Up till now there was no possible case in which the RTEs wouldn't already have ACL_SELECT set ... but now that you can say something like 'INSERT INTO foo ... RETURNING *' this is an essential step. With this commit, a RETURNING clause adds the requirement for SELECT permissions on the target table if and only if the clause actually reads the value of at least one target-table column. 58538a0f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| Committer | Fix oversight in initial implementation of PORTAL_ONE_RETURNING mode: we cannot assume that there's exactly one Query in the Portal, as we can for ONE_SELECT mode, because non-SELECT queries might have extra queries added during rule rewrites. Fix things up so that we'll use ONE_RETURNING mode when a Portal contains one primary (canSetTag) query and that query has a RETURNING list. This appears to be a second showstopper reason for running the Portal to completion before we start to hand anything back --- we want to be sure that the rule-added queries get run too. 65b2f93b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| Committer | Support INSERT/UPDATE/DELETE RETURNING in plpgsql, with rowcount checking as per yesterday's proposal. Also make things a tad more orthogonal by adding the recent STRICT addition to EXECUTE INTO. Jonah Harris and Tom Lane 3d1e01ca | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| Committer | When executing a list of queries derived from rule expansion, _SPI_execute_plan's return code should reflect the type of the query that is marked canSetTag, not necessarily the last one in the list. 29fa0513 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| Committer | Remove hash_destroy calls in hash_create's failure paths. As noted by a Coverity warning, these are risky since the hashtable isn't necessarily fully set up yet. They're unnecessary anyway: a deletable hashtable should be in a memory context that will be cleared following elog(ERROR). Per report from Martijn van Oosterhout. c859294c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 14, 2006 |
| CommitterBackported | Get rid of "lookahead" functionality in plpgsql's yylex() function, and instead make the grammar production for the RETURN statement do the heavy lifting. The lookahead idea was copied from the main parser, but it does not work in plpgsql's parser because here gram.y looks explicitly at the scanner's yytext variable, which will be out of sync after a failed lookahead step. A minimal example is 36481474 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Aug 14, 2006 |
| CommitterBackported | Fix core dump in duration logging for a V3-protocol Execute message when what's being executed is a COMMIT or ROLLBACK. Per report from Sergey Koposov. Backpatch to 8.1; 8.0 and before don't have the bug due to lack of any logging at all here. 1b67e0cc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Aug 13, 2006 |
| Committer | Cause psql to report both the returned data and the command status tag for INSERT/UPDATE/DELETE RETURNING. Per discussion. b475d25f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 13, 2006 |
| Committer | If test postmaster fails to start within 60 seconds, try to kill -9 it so that it won't interfere with later trials. Per recent buildfarm experience. Anyone know how to do this on Windows? fbc7f59b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 13, 2006 |
| Committer | Extend 'guc' regression test to check manipulations of datestyle as well as vacuum_cost_delay. Since datestyle is a string variable, this exercises memory allocation issues that might not appear when modifying an integer GUC variable. Also, we can observe the side effects of changing datestyle to check that assign hooks are called at the right times. a1dad99c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 13, 2006 |
| Committer | Original coding of 'returning' regression test inadvertently chose a nonunique join value, leading to plan-choice-dependent results ... and it seems some platforms will choose a different plan. Tweak the test so that it has well-defined results. Per report from Olivier Prenant. d2ccc707 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 13, 2006 |
| Committer | Tweak SPI_cursor_open to allow INSERT/UPDATE/DELETE RETURNING; this was merely a matter of fixing the error check, since the underlying Portal infrastructure already handles it. This in turn allows these statements to be used in some existing plpgsql and plperl contexts, such as a plpgsql FOR loop. Also, do some marginal code cleanup in places that were being sloppy about distinguishing SELECT from SELECT INTO. 3f8db37c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 12, 2006 |
| Committer | Remove ancient, obsolete comment. 883f4b42 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 12, 2006 |
| Committer | Add INSERT/UPDATE/DELETE RETURNING, with basic docs and regression tests. plpgsql support to come later. Along the way, convert execMain's SELECT INTO support into a DestReceiver, in order to eliminate some ugly special cases. 7a3e30e6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 12, 2006 |
| Committer | Fix UNION/INTERSECT/EXCEPT so that when two inputs being merged have same data type and same typmod, we show that typmod as the output typmod, rather than generic -1. This responds to several complaints over the past few years about UNIONs unexpectedly dropping length or precision info. 0ee26100 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 10, 2006 |
| Committer | Fix inadequate makefile-fu in ecpg regression tests. I think this will fix current platypus build failure. 0bf9d3a5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 09, 2006 |
| Committer | Fix 'make clean' for change of regression.diffs file name. 644e3fe3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 08, 2006 |
| Committer | Add a feature for automatic initialization and finalization of dynamically loaded libraries: call functions _PG_init() and _PG_fini() if the library defines such symbols. Hence we no longer need to specify an initialization function in preload_libraries: we can assume that the library used the _PG_init() convention, instead. This removes one source of pilot error in use of preloaded libraries. Original patch by Ralf Engelschall, preload_libraries changes by me. b09bfcaa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 08, 2006 |
| Committer | Put back another improperly-removed #include. 2dd7ab06 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 07, 2006 |
| CommitterBackported | Back-port HEAD's configure fixes to select appropriate compiler switches for Intel's icc and AIX's xlc. 804e7c5c | REL8_1_STABLE8.1.5REL8_0_STABLE8.0.9 | No linked thread | Aug 07, 2006 |
| Committer | On some platforms, pg_usleep isn't interruptible by signals; fix archiver to behave per original coder's expectation on these machines. We already know this everywhere else AFAICT. 2dc7c88c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 07, 2006 |
| Committer | Make recovery from WAL be restartable, by executing a checkpoint-like operation every so often. This improves the usefulness of PITR log shipping for hot standby: formerly, if the standby server crashed, it was necessary to restart it from the last base backup and replay all the WAL since then. Now it will only need to reread about the same amount of WAL as the master server would. The behavior might also come in handy during a long PITR replay sequence. Simon Riggs, with some editorialization by Tom Lane. e0028369 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 07, 2006 |
| Committer | Tweak sanity_check regression test to display more tables (viz, those without indexes) but not to display temp tables. It's a bit hard to credit that sanity_check could get through a database-wide VACUUM while the preceding create_index test is still trying to clean up its temp tables ... but I see no other explanation for the current failure report from buildfarm member sponge. 23dc3082 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 06, 2006 |
| Committer | Add support for forcing a switch to a new xlog file; cause such a switch to happen automatically during pg_stop_backup(). Add some functions for interrogating the current xlog insertion point and for easily extracting WAL filenames from the hex WAL locations displayed by pg_stop_backup and friends. Simon Riggs with some editorialization by Tom Lane. 704ddaaa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 06, 2006 |
| Committer | Fix inheritance_planner() to delete dummy subplans from its Append plan list, when some of the child rels have been excluded by constraint exclusion. This doesn't save a huge amount of time but it'll save some, and it makes the EXPLAIN output look saner. We already did the equivalent thing in set_append_rel_pathlist(), but not here. 635d42e9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 05, 2006 |
| Committer | Extend relation_excluded_by_constraints() to check for mutually contradictory WHERE-clauses applied to a relation. This makes the GUC variable constraint_exclusion rather inappropriately named, but I've refrained for the moment from renaming it. Per example from Martin Lesser. 5f789c5e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 05, 2006 |
| Committer | Teach predicate_refuted_by() how to do proofs involving NOT-clauses. This doesn't matter too much for ordinary NOTs, since prepqual.c does its best to get rid of those, but it helps with IS NOT TRUE clauses which the rule rewriter likes to insert. Per example from Martin Lesser. 6357f4ea | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 05, 2006 |
| Committer | Fix domain_in() bug exhibited by Darcy Buskermolen. The idea of an EState that's shorter-lived than the expression state being evaluated in it really doesn't work :-( --- we end up with fn_extra caches getting deleted while still in use. Rather than abandon the notion of caching expression state across domain_in calls altogether, I chose to make domain_in a bit cozier with ExprContext. All we really need for evaluating variable-free expressions is an ExprContext, not an EState, so I invented the notion of a "standalone" ExprContext. domain_in can prevent resource leakages by doing a ReScanExprContext on this rather than having to free it entirely; so we can make the ExprContext have the same lifespan (and particularly the same per_query memory context) as the expression state structs. c6848986 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Remove redeclaration of struct sqlca_t --- unnecessary and provokes warnings on some compilers. 6db6714f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Fix missing 'static' keywords --- some compilers gripe about this. 34677588 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Fix inadequate quoting in test for AIX xlc. a7d400ad | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | 'make clean' must remove the create subdirectories results/ and log/, not merely remove their contents. Else 'cvs update' complains. 5d844d32 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Teach eval_const_expressions to simplify BooleanTest nodes that have constant input. Seems worth doing because rule rewriter inserts IS NOT TRUE tests into WHERE clauses. e2d34d75 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Add some basic tests of GUC behavior. Joachim Wieland c8226429 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 04, 2006 |
| Committer | Cause ALTER TABLE to perform ALTER COLUMN DROP DEFAULT operations during the DROP pass rather than the ADD_CONSTR pass. On examining the code I think this was just an oversight rather than intentional, and it seems to satisfy the principle of least surprise better than the alternative solution that was discussed. Add an example to the ref page showing how to do ALTER TYPE and update the default in one command. Per gripe from Markus Bertheau that that wasn't possible. 7946f772 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | Remove use of a regex character class in resultmap (for freebsd version check). This isn't supported by pg_regress since the recent rewrite into C. While we could add char classes to pg_regress.c's code, it's not really needed at the moment: thanks to Andrew's patch to make pg_regress always accept the 'standard' comparison file, we can just drop the version check. 89c07b18 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | Fix AfterTriggerExecute() to pass tg_trigtuple and tg_newtuple as NULLs rather than pointers to garbage, when calling AFTER STATEMENT triggers. Michael Fuhr f5b78fa5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | Add missing pgstat_count_index_scan(), per Andreas Seltenreich. bc8ac3ce | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | A few regression tests for VALUES, from Gavin Sherry. d841cc44 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 03, 2006 |
| Committer | Arrange for ValuesScan to keep per-sublist expression eval state in a temporary context that can be reset when advancing to the next sublist. This is faster and more thorough at recovering space than the previous method; moreover it will do the right thing if something in the sublist tries to register an expression context callback. 0dfb595d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 02, 2006 |
| CommitterBackported | Fix documentation error: GRANT/REVOKE for roles only accept role names as grantees, not PUBLIC ... and you can't say GROUP either. Noted by Brian Hurt. 9649b182 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Aug 02, 2006 |
| Committer | Wups, got the test for contain_vars_of_level-not-needed wrong in transformInsertStmt: the target table is already in p_rtable at that point. e79aed7c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 02, 2006 |
| Committer | Add a HINT per suggestion from Michael Glaesemann. Also, tweak OLD/NEW test to avoid expensive contain_vars_of_level() scan in the normal case where we're not inside a rule. 6392518c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Aug 02, 2006 |
| Committer | Change the relation_open protocol so that we obtain lock on a relation (table or index) before trying to open its relcache entry. This fixes race conditions in which someone else commits a change to the relation's catalog entries while we are in process of doing relcache load. Problems of that ilk have been reported sporadically for years, but it was not really practical to fix until recently --- for instance, the recent addition of WAL-log support for in-place updates helped. 09d3670d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 31, 2006 |
| Committer | Change the bootstrap sequence so that toast tables for system catalogs are created in the bootstrap phase proper, rather than added after-the-fact by initdb. This is cleaner than before because it allows us to retire the undocumented ALTER TABLE ... CREATE TOAST TABLE command, but the real reason I'm doing it is so that toast tables of shared catalogs will now have predetermined OIDs. This will allow a reasonably clean solution to the problem of locking tables before we load their relcache entries, to appear in a forthcoming patch. 6e38e34d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 31, 2006 |
| Committer | Fix a couple of comments. 88222636 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 30, 2006 |
| Committer | Adjust initialization sequence for timezone_abbreviations so that it's handled just about like timezone; in particular, don't try to read anything during InitializeGUCOptions. Should solve current startup failure on Windows, and avoid wasted cycles if a nondefault setting is specified in postgresql.conf too. Possibly we need to think about a more general solution for handling 'expensive to set' GUC options. 033a477e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 29, 2006 |
| Committer | SQL2003-standard statistical aggregates, by Sergey Koposov. I've added only the float8 versions of the aggregates, which is all that the standard requires. Sergey's original patch also provided versions using numeric arithmetic, but given the size and slowness of the code, I doubt we ought to include those in core. 1249cf8f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 28, 2006 |
| CommitterBackported | Fix table title. 0fd087af | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jul 28, 2006 |
| CommitterBackported | Make it clearer that not every Postgres character set can be used as a server-side character set. b8cd6b4f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jul 28, 2006 |
| Committer | Fix incorrect function return code in cube_cmp and cube_dim; update regression expected files to what I think is correct. 5f047353 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 27, 2006 |
| Committer | Aggregate functions now support multiple input arguments. I also took the opportunity to treat COUNT(*) as a zero-argument aggregate instead of the old hack that equated it to COUNT(1); this is materially cleaner (no more weird ANYOID cases) and ought to be at least a tiny bit faster. Original patch by Sergey Koposov; review, documentation, simple regression tests, pg_dump and psql support by moi. 108fe473 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 27, 2006 |
| Committer | Original coding of pg_regress.c made the results and log directories with restrictive permissions, which was not the behavior of the shell script and doesn't seem very desirable. Use the umask setting instead. 8aab1978 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 27, 2006 |
| Committer | Code review for bigint-LIMIT patch. Fix missed planner dependency, eliminate unnecessary code, force initdb because stored rules change (limit nodes are now supposed to be int8 not int4 expressions). Update comments and error messages, which still all said 'integer'. a998a692 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 26, 2006 |
| Committer | Modify btree to delete known-dead index entries without an actual VACUUM. When we are about to split an index page to do an insertion, first look to see if any entries marked LP_DELETE exist on the page, and if so remove them to try to make enough space for the desired insert. This should reduce index bloat in heavily-updated tables, although of course you still need VACUUM eventually to clean up the heap. e6284649 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 25, 2006 |
| Committer | Add missing @OVERRIDE to 'India' config file, per Michael Fuhr. Add $PostgreSQL$ lines for CVS identity, too. bd112776 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 25, 2006 |
| Committer | Remove hard-wired lists of timezone abbreviations in favor of providing configuration files that can be altered by a DBA. The australian_timezones GUC setting disappears, replaced by a timezone_abbreviations setting (set this to 'Australia' to get the effect of australian_timezones). The list of zone names defined by default has undergone a bit of cleanup, too. Documentation still needs some work --- in particular, should we fix Table B-4, or just get rid of it? Joachim Wieland, with some editorializing by moi. d8b5c95c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 25, 2006 |
| Committer | Make the order of operations in PostmasterMain a bit saner ... some recent patches had added stuff in rather random spots. d0e4a076 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 25, 2006 |
| Committer | Add a fudge factor to genericcostestimate() to prevent the planner from thinking that indexes of different sizes are equally attractive. Per gripe from Jim Nasby. (I remain unconvinced that there's such a problem in existing releases, but CVS HEAD definitely has got a problem because of its new count-only-leaf-pages approach to indexscan costing.) 8dcaea7b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 24, 2006 |
| Committer | Convert the lock manager to use the new dynahash.c support for partitioned hash tables, instead of the previous kluge involving multiple hash tables. This partially undoes my patch of last December. a794fb06 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 23, 2006 |
| CommitterBackported | Fix oversight in sizing of shared buffer lookup hashtable. Because BufferAlloc tries to insert a new mapping entry before deleting the old one for a buffer, we have a transient need for more than NBuffers entries --- one more in 8.1, and as many as NUM_BUFFER_PARTITIONS more in CVS HEAD. In theory this could lead to an "out of shared memory" failure if shmem had already been completely claimed by the time the extra entries were needed. b25dc481 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jul 23, 2006 |
| Committer | Split the buffer mapping table into multiple separately lockable partitions, as per discussion. Passes functionality checks, but I don't have any performance data yet. 10b9ca3d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 23, 2006 |
| Committer | Add support to dynahash.c for partitioning shared hashtables according to the low-order bits of the entry hash value. Also make some incidental cleanups in the dynahash API, such as not exporting the hash header structs to the world. 51ee9fa1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 22, 2006 |
| CommitterBackported | Hmm, seems --disable-spinlocks has been broken for awhile and nobody noticed. Fix SpinlockSemas() to report the correct count considering that PG 8.1 adds a spinlock to each shared-buffer header. c0e9b313 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jul 22, 2006 |
| Committer | In the recent changes to make the planner account better for cache effects in a nestloop inner indexscan, I had only dealt with plain index scans and the index portion of bitmap scans. But there will be cache benefits for the heap accesses of bitmap scans too, so fix cost_bitmap_heap_scan() to account for that. 98359c3e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 22, 2006 |
| Committer | Add the full set of comparison functions for type TID, including a btree opclass. This is not so much because anyone's likely to create an index on TID, as that sorting TIDs can be useful. Also added max and min aggregates while at it, so that one can investigate the clusteredness of a table with queries like SELECT min(ctid), max(ctid) FROM tab WHERE ... Greg Stark and Tom Lane 0144eb92 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 21, 2006 |
| Committer | Ah, I finally realize why Magnus wanted to add a --bindir option to pg_regress: there's no other way to cope with testing a relocated installation. Seems better to call it --psqldir though, since the only thing we need to find in that case is psql. It'd be better if we could use find_other_exec, but that's not happening unless we are willing to install pg_regress alongside psql, which seems unlikely to happen. bc660c42 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 21, 2006 |
| Committer | As a stopgap to get the Windows buildfarm members running again, hot-wire the check on diff's exit status to check for literally 0 or 1. Someone should look into why WIFEXITED/WEXITSTATUS don't work for this, but I've spent more than enough time on it already. 11f6d2fc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 20, 2006 |
| Committer | Print out diff status code when we think there's a hard failure. May help in debugging behavior on Windows. 7da24bcb | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 20, 2006 |
| Committer | Suppress unused-variable compiler warning, per Andrew Dunstan. c3104376 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 20, 2006 |
| Committer | Fix pg_regress.c to report tests in a parallel group when they finish, not when they're started. This mimics a subtle point of the behavior of the old shell script, and gives better feedback when watching the tests. 27a83103 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 20, 2006 |
| Committer | Make pg_regress.c get paths from pg_config_paths.h, instead of -D switches passed from the Makefile. This looks like it will fix problem with virtual vs real paths under msys. 5652ea70 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 20, 2006 |
| CommitterBackported | Don't try to truncate multixact SLRU files in checkpoints done during xlog recovery. In the first place, it doesn't work because slru's latest_page_number isn't set up yet (this is why we've been hearing reports of strange "apparent wraparound" log messages during crash recovery, but only from people who'd managed to advance their next-mxact counters some considerable distance from 0). In the second place, it seems a bit unwise to be throwing away data during crash recovery anwyway. This latter consideration convinces me to just disable truncation during recovery, rather than computing latest_page_number and pushing ahead. 9dc842f0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jul 20, 2006 |
| Committer | Adjust spawn_process() to avoid unnecessary overhead processes: we can just exec instead of creating a subprocess. This reduces process usage from four processes per parallel test to two. I have no idea whether a comparable optimization is possible or useful in the Windows port. 60cfe25e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 19, 2006 |
| Committer | Adjust pg_regress to print out the exact string given to system() when 'make install' or 'initdb' fails. Also minor simplification of fgets() usage --- fgets guarantees a trailing null anyway. 5b8b137b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 19, 2006 |
| Committer | kill() is declared in <signal.h> per Single Unix Spec. fe2c4e41 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 19, 2006 |
| Committer | Tweak command quoting for Windows (I'd forgotten about SYSTEMQUOTE). 1c5531b1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 19, 2006 |
| Committer | Remove unnecessary inclusion of libpq into pg_regress --- overly enthusiastic copy and paste ... bcee9e8c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 19, 2006 |
| Committer | Rewrite pg_regress as a C program instead of a shell script. This allows it to be used on Windows without installing mingw (though you do still need 'diff'), and opens the door to future improvements such as message localization. Magnus Hagander and Tom Lane. a38c85bd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 19, 2006 |
| Committer | copydir() and rmtree() need to use lstat, not stat, to behave as expected with symlinks. Noted while trying to use rmtree in new C-code pg_regress. 88295244 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 18, 2006 |
| Committer | Make pg_regress a tad simpler and more general-purpose by removing its code to forcibly drop regressuser[1-4] and regressgroup[1-2]. Instead, let the privileges.sql test do that for itself (this is made easy by the recent addition of DROP ROLE IF EXISTS). Per a recent patch proposed by Joachim Wieland --- the rest of his patch is superseded by the rewrite into C, but this is a good idea we should adopt. 84e60427 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 18, 2006 |
| Committer | Include libpq/pqcomm.h to ensure we have correct knowledge of HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN. Per results of pgcheckdefines. 5c75ff2a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 16, 2006 |
| Committer | In a Windows backend, don't build src/port/pgsleep.c's version of pg_usleep at all. Instead call the replacement function in port/win32/signal.c by that name. Avoids tricky macro-redefinition logic and suppresses a compiler warning; furthermore it ensures that no one can accidentally use the non-signal-aware version of pg_usleep in a Windows backend. 93120f35 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 16, 2006 |
| CommitterBackported | Ensure that we retry rather than erroring out when send() or recv() return EINTR; the stats code was failing to do this and so were a couple of places in the postmaster. The stats code assumed that recv() could not return EINTR if a preceding select() showed the socket to be read-ready, but this is demonstrably false with our Windows implementation of recv(), and it may not be the case on all Unix variants either. I think this explains the intermittent stats regression test failures we've been seeing, as well as reports of stats collector instability under high load on Windows. e96373aa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jul 16, 2006 |
| Committer | Fix a few places where $Id$ and $Header$ CVS tags had crept into the source tree. They should all be $PostgreSQL$ of course. a420818d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 16, 2006 |
| Committer | Fix lack of repeat-inclusion guard in win32 substitute sys/socket.h. I think this explains the 'implicit declaration of function gai_strerror' warnings visible in the current buildfarm report from snake: if sys/socket.h is included again after getaddrinfo.h, the file would merrily undefine the gai_strerror macro. 808849e5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 16, 2006 |
| Committer | Put back another not-so-unnecessary #include, per report from Hiroshi Saito. 3ff58b48 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 16, 2006 |
| Committer | Fix getDatumCopy(): don't use store_att_byval to copy into a Datum variable (this accounts for regression failures on PPC64, and in fact won't work on any big-endian machine). Get rid of hardwired knowledge about datum size rules; make it look just like datumCopy(). c36418be | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 16, 2006 |
| Committer | Improve error message wording. e040ab44 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 16, 2006 |
| Committer | Put back some more not-so-unused-as-all-that #includes. This un-breaks the EXEC_BACKEND code on my machines, so hopefully it will fix the Windows buildfarm members. daecd976 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 15, 2006 |
| Committer | Fix some pgcrypto portability issues, per Marko Kreen. 89e2a955 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 15, 2006 |
| Committer | Fix some missing inclusions identified with new pgcheckdefines tool. 9b556322 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 15, 2006 |
| Committer | Fix some makefiles that fail to yield good results from 'make -qp'. This doesn't really matter for ordinary building of Postgres, but it's useful for automated checks, such as my just-committed pgcheckdefines. a7143b30 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 15, 2006 |
| Committer | Create a tool to catch #include omissions that might not result in any compiler warning, specifically #ifdef or #if defined tests on symbols that are defined in a file not included. The results are a bit noisy and require care to interpret, but it's a lot better than no tool at all. 2d11d261 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 15, 2006 |
| Committer | Fix misguided removal of access/tuptoaster.h inclusion, per Kris Jurka. I'm going to insist on reversion of this entire patch unless pgrminclude is upgraded to a less broken state, but in the meantime let's get contrib passing regression again. 98bac16e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 14, 2006 |
| Committer | In PGP public key tests, encrypt the secret key with AES not CAST5, so that the test passes with or without OpenSSL. Marko Kreen e2f7eb36 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 14, 2006 |
| Committer | Fix another passel of include-file breakage. Kris Jurka, Tom Lane cd24163f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 14, 2006 |
| CommitterBackported | Add dependency to fix parallel-make race condition. Alexander Dupuy c743cc2e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jul 14, 2006 |
| Committer | Fix a passel of recently-committed violations of the rule 'thou shalt have no other gods before c.h'. Also remove some demonstrably redundant #include lines, mostly of <errno.h> which was added to c.h years ago. ae643747 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 14, 2006 |
| Committer | Tweak fillfactor code as per my recent proposal. Fix nbtsort.c so that it can handle small fillfactors for ordinary-sized index entries without failing on large ones; fix nbtinsert.c to distinguish leaf and nonleaf pages; change the minimum fillfactor to 10% for all index types. d29b6688 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 11, 2006 |
| CommitterBackported | Remove no-longer-needed configure test for krb5_encrypt(), per Jim Gates. c469aed1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jul 11, 2006 |
| Committer | Reverse inclusion order of <ws2tcpip.h> and <winsock2.h>, per Dave Page. c713683f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 11, 2006 |
| CommitterBackported | Fix ALTER TABLE to check pre-existing NOT NULL constraints when rewriting a table. Otherwise a USING clause that yields NULL can leave the table violating its constraint (possibly there are other cases too). Per report from Alexander Pravking. cb33de77 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jul 10, 2006 |
| Committer | Documentation fixes for FILLFACTOR patch. Minor other editorialization. 2d0c1d31 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 04, 2006 |
| Committer | Code review for FILLFACTOR patch. Change WITH grammar as per earlier discussion (including making def_arg allow reserved words), add missed opt_definition for UNIQUE case. Put the reloptions support code in a less random place (I chose to make a new file access/common/reloptions.c). Eliminate header inclusion creep. Make the index options functions safely user-callable (seems like client apps might like to be able to test validity of options before trying to make an index). Reduce overhead for normal case with no options by allowing rd_options to be NULL. Fix some unmaintainably klugy code, including getting rid of Natts_pg_class_fixed at long last. Some stylistic cleanup too, and pay attention to keeping comments in sync with code. b7b78d24 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 03, 2006 |
| Committer | Fix broken markup. feed0735 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 03, 2006 |
| Committer | Fix oversight in planning for multiple indexscans driven by ScalarArrayOpExpr index quals: we were estimating the right total number of rows returned, but treating the index-access part of the cost as if a single scan were fetching that many consecutive index tuples. Actually we should treat it as a multiple indexscan, and if there are enough of 'em the Mackert-Lohman discount should kick in. 08ccdf02 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 01, 2006 |
| Committer | Revise the planner's handling of "pseudoconstant" WHERE clauses, that is clauses containing no variables and no volatile functions. Such a clause can be used as a one-time qual in a gating Result plan node, to suppress plan execution entirely when it is false. Even when the clause is true, putting it in a gating node wins by avoiding repeated evaluation of the clause. In previous PG releases, query_planner() would do this for pseudoconstant clauses appearing at the top level of the jointree, but there was no ability to generate a gating Result deeper in the plan tree. To fix it, get rid of the special case in query_planner(), and instead process pseudoconstant clauses through the normal RestrictInfo qual distribution mechanism. When a pseudoconstant clause is found attached to a path node in create_plan(), pull it out and generate a gating Result at that point. This requires special-casing pseudoconstants in selectivity estimation and cost_qual_eval, but on the whole it's pretty clean. It probably even makes the planner a bit faster than before for the normal case of no pseudoconstants, since removing pull_constant_clauses saves one useless traversal of the qual tree. Per gripe from Phil Frost. cffd89ca | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jul 01, 2006 |
| Committer | Remove the separate 'stats buffer' process, letting backend stats messages be delivered directly to the collector process. The extra process context swaps required to transfer data through the buffer process seem to outweigh any value the buffering might have. Per recent discussion and tests. I modified Bruce's draft patch to use poll() rather than select() where available (this makes a noticeable difference on my system), and fixed up the EXEC_BACKEND case. 51e400c9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 29, 2006 |
| Committer | Change TRUNCATE's method for searching for foreign-key references so that the order in which it visits tables is not dependent on the physical order of pg_constraint entries, and neither are the error messages it gives. This should correct recently-noticed instability in regression tests. cd4609e2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 29, 2006 |
| Committer | Improve planner estimates for size of tuple hash tables. 1c1ecd51 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 28, 2006 |
| Committer | Fix hash aggregation to suppress unneeded columns from being stored in tuple hash table entries. This addresses the problem previously noted that use of a 'physical tlist' in the input scan node could bloat the hash table entries far beyond what the planner expects. It's a better answer than my previous thought of undoing the physical tlist optimization, because we can also remove columns that are needed to compute the aggregate functions but aren't part of the grouping column set. 485375a1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 28, 2006 |
| Committer | Adjust TupleHashTables to use MinimalTuple format for contained tuples. cfc71031 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 28, 2006 |
| Committer | Remove embedded newline in string literal --- seems to make newer gcc versions very unhappy, and shouldn't be there anyway. a1dc5c60 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 27, 2006 |
| Committer | Convert hash join code to use MinimalTuple format in tuple hash table and batch files. Should reduce memory and I/O demands for such joins. 69d0a15e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 27, 2006 |
| Committer | Put #ifdef NOT_USED around posix_fadvise call. We may want to resurrect this someday, but right now it seems that posix_fadvise is immature to the point of being broken on many platforms ... and we don't have any benchmark evidence proving it's worth spending time on. 3c71244b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 27, 2006 |
| Committer | Extend the MinimalTuple concept to tuplesort.c, thereby reducing the per-tuple space overhead for sorts in memory. I chose to replace the previous patch that tried to write out the bare minimum amount of data when sorting on disk; instead, just dump the MinimalTuples as-is. This wastes 3 to 10 bytes per tuple depending on architecture and null-bitmap length, but the simplification in the writetup/readtup routines seems worth it. cdd5178c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 27, 2006 |
| Committer | Fix typo. 60f46dee | REL8_1_STABLE8.1.5 | No linked thread | Jun 27, 2006 |
| Committer | Create infrastructure for 'MinimalTuple' representation of in-memory tuples with less header overhead than a regular HeapTuple, per my recent proposal. Teach TupleTableSlot code how to deal with these. As proof of concept, change tuplestore.c to store MinimalTuples instead of HeapTuples. Future patches will expand the concept to other places where it is useful. 3f50ba27 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 27, 2006 |
| Committer | Change the row constructor syntax (ROW(...)) so that list elements foo.* will be expanded to a list of their member fields, rather than creating a nested rowtype field as formerly. (The old behavior is still available by omitting '.*'.) This syntax is not allowed by the SQL spec AFAICS, so changing its behavior doesn't violate the spec. The new behavior is substantially more useful since it allows, for example, triggers to check for data changes with 'if row(new.*) is distinct from row(old.*)'. Per my recent proposal. ca0d2197 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 26, 2006 |
| CommitterBackported | Tweak dynahash.c to avoid wasting memory space in non-shared hash tables. palloc() will normally round allocation requests up to the next power of 2, so make dynahash choose allocation sizes that are as close to a power of 2 as possible. Back-patch to 8.1 --- the problem exists further back, but a much larger patch would be needed and it doesn't seem worth taking any risks. 2924ca67 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jun 25, 2006 |
| Committer | Fix re-inclusion of port header file on Windows, per Magnus. 50aa69a8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 24, 2006 |
| Committer | Back-patch 7.4-era fix for memory leak with SSL connections due to missing X509_free() calls. Per a request from a Red Hat customer; seems silly for Red Hat to be shipping a patch that's not in upstream. fe090f07 | REL7_3_STABLE7.3.16 | No linked thread | Jun 23, 2006 |
| Committer | Remove dllinit.c; it was only needed for long-obsolete Cygwin versions, and there was some question about its copyright status. 69bf0a0d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 22, 2006 |
| CommitterBackported | pg_stop_backup was calling XLogArchiveNotify() twice for the newly created backup history file. Bug introduced by the 8.1 change to make pg_stop_backup delete older history files. Per report from Masao Fujii. 3a04f53e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jun 22, 2006 |
| Committer | Standalone backends need pgstat_bestart() too, per Qingqing Zhou. 39bed3b3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 22, 2006 |
| Committer | Move setup_cancel_handler() up near start of psql main(), where the setup_win32_locks() call formerly was, to ensure that cancelConnLock is valid when it needs to be. Per Yoshiyuki Asaba. a5606579 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 21, 2006 |
| Committer | Remove ancient kluge that kept nodeAgg.c from crashing on UPDATEs involving aggregates. We just disallowed that, and AFAICS there should be no other cases where direct (non-aggregated) references to input columns are allowed in a query with aggregation and no GROUP BY. 59fd249a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 21, 2006 |
| CommitterBackported | Disallow aggregate functions in UPDATE commands (unless within a sub-SELECT). This is disallowed by the SQL spec because it doesn't have any very sensible interpretation. Historically Postgres has allowed it but behaved strangely. As of PG 8.1 a server crash is possible if the MIN/MAX index optimization gets applied; rather than try to "fix" that, it seems best to just enforce the spec restriction. Per report from Josh Drake and Alvaro Herrera. 1f5ca045 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jun 21, 2006 |
| Committer | Eliminate a gratuitously different wording of the 'cannot use aggregate function in check constraint' error message. e256bafa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 21, 2006 |
| Committer | Clean up psql variable code a little: eliminate unnecessary tests in GetVariable() and be consistent about treatment of the list header. Motivated by noticing strspn() taking an unreasonable percentage of runtime --- the call removed from GetVariable() was the only one that could be in a high-usage path ... 04c5b696 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 21, 2006 |
| Committer | Remove redundant gettimeofday() calls to the extent practical without changing semantics too much. statement_timestamp is now set immediately upon receipt of a client command message, and the various places that used to do their own gettimeofday() calls to mark command startup are referenced to that instead. I have also made stats_command_string use that same value for pg_stat_activity.query_start for both the command itself and its eventual replacement by <IDLE> or <idle in transaction>. There was some debate about that, but no argument that seemed convincing enough to justify an extra gettimeofday() call. 27c3e3de | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 20, 2006 |
| Committer | Split definitions for md5.c out of crypt.h and into their own header libpq/md5.h, so that there's a clear separation between backend-only definitions and shared frontend/backend definitions. (Turns out this is reversing a bad decision from some years ago...) Fix up references to crypt.h as needed. I looked into moving the code into src/port, but the headers in src/include/libpq are sufficiently intertwined that it seems more work than it's worth to do that. 47a37aee | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 20, 2006 |
| Committer | Some editorial work on the documentation of the current-date/time functions. eaf8f312 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 19, 2006 |
| Committer | Back-port shell script syntax fix needed for some BSD machines. Per buildfarm results from spoonbill. 49f1f244 | REL8_0_STABLE8.0.9 | No linked thread | Jun 19, 2006 |
| Committer | Take the statistics collector out of the loop for monitoring backends' current commands; instead, store current-status information in shared memory. This substantially reduces the overhead of stats_command_string and also ensures that pg_stat_activity is fully up to date at all times. Per my recent proposal. b13c9686 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 19, 2006 |
| Committer | Don't try to call posix_fadvise() unless <fcntl.h> supplies a declaration for it. Hopefully will fix core dump evidenced by some buildfarm members since fadvise patch went in. The actual definition of the function is not ABI-compatible with compiler's default assumption in the absence of any declaration, so it's clearly unsafe to try to call it without seeing a declaration. 1e8ae136 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 18, 2006 |
| Committer | Fix saveHistory() to not emit bogus complaint during psql exit when using Darwin's libedit; per my proposal last August. Also, suppress cast-away- const warnings. 22045666 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 18, 2006 |
| CommitterBackported | Increase timeout in statement_timeout test from 1 second to 2 seconds. We have once or twice seen failures suggesting that control didn't get to the exception block before the timeout elapsed, which is unlikely but not impossible in a parallel regression test (with a dozen other backends competing for cycles). This change doesn't completely prevent the problem of course, but it should reduce the probability enough that we don't see it anymore. Per buildfarm results. f1e671a0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jun 18, 2006 |
| Committer | Fix a couple of obvious problems in DROP IF EXISTS patch. 44cb3ae7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 16, 2006 |
| Committer | Code review for SELECT INTO STRICT patch: use saner choices of error SQLSTATEs, fix some documentation problems. c892643a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 16, 2006 |
| CommitterBackported | Clean up after someone's curious idea that it'd be good to strip leading zeroes from the SQLSTATE codes. They're strings, people, not numbers. 3ba3e6c8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jun 16, 2006 |
| Committer | Fix problems with cached tuple descriptors disappearing while still in use by creating a reference-count mechanism, similar to what we did a long time ago for catcache entries. The back branches have an ugly solution involving lots of extra copies, but this way is more efficient. Reference counting is only applied to tupdescs that are actually in caches --- there seems no need to use it for tupdescs that are generated in the executor, since they'll go away during plan shutdown by virtue of being in the per-query memory context. Neil Conway and Tom Lane 06e10abc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 16, 2006 |
| Committer | Remove the limit on the number of entries allowed in catcaches, and remove the infrastructure needed to enforce the limit, ie, the global LRU list of cache entries. On small-to-middling databases this wins because maintaining the LRU list is a waste of time. On large databases this wins because it's better to keep more cache entries (we assume such users can afford to use some more per-backend memory than was contemplated in the Berkeley-era catcache design). This provides a noticeable improvement in the speed of psql \d on a 10000-table database, though it doesn't make it instantaneous. 8b9bc234 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 15, 2006 |
| Committer | Further thoughts about lo_export/lo_import error handling: if one of the lower-level large object functions fails, it will have already set a suitable error message --- probably something from the backend --- and it is not useful to overwrite that with a generic 'error while reading large object' message. So remove redundant messages. 2193beb7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 14, 2006 |
| Committer | Clean up psql's control-C handling to avoid longjmp'ing out of random places --- that risks corrupting data structures, losing sync with the backend, etc. We now longjmp only from calls to readline, fgets, and fread, which we assume are coded to protect themselves against interrupts at undesirable times. This requires adding explicit tests for cancel_pressed in long-running loops, but on the whole it's far cleaner. Martijn van Oosterhout and Tom Lane. f3164c02 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 14, 2006 |
| Committer | Improve error detection and recovery in lo_import()/lo_export(). Problems noted while experimenting with new control-C code for psql. ace93353 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 14, 2006 |
| Committer | Do a CHECK_FOR_INTERRUPTS immediately before terminating a fastpath function call. Previously, there may have been no CHECK_FOR_INTERRUPTS at all in the fastpath code path, making it impossible to cancel an operation such as \lo_import externally. This addition doesn't ensure you can cancel, since your SIGINT may arrive while the backend is idle waiting for the client, but it gives the largest window we can easily provide. Noted while experimenting with new control-C code for psql. 067e40cc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 14, 2006 |
| Committer | Minor code cleanup: make the WIN32 case less gratuitously different from the other platform-specific cases in ps_status. e71e02d9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 12, 2006 |
| Committer | Code review for psql multiline history patch(es). Fix memory leak, failure to enter commands in history if canceled by control-C, other infelicities. e2e2a9db | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 11, 2006 |
| CommitterBackported | Fix Assert failure when a fastpath function call is attempted inside an already-aborted transaction block. GetSnapshotData throws an Assert if not in a valid transaction; hence we mustn't attempt to set a snapshot for the function until after checking for aborted transaction. This is harmless AFAICT if Asserts aren't enabled (GetSnapshotData will compute a bogus snapshot, but it doesn't matter since HandleFunctionRequest will throw an error shortly anywy). Hence, not a major bug. bf64a379 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jun 11, 2006 |
| CommitterBackported | Repair remarkably-inefficient query for dumping large object comments: it was invoking obj_description() for each large object chunk, instead of once per large object. This code is new as of 8.1, which may explain why the problem hadn't been noticed already. b773987f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jun 09, 2006 |
| Committer | Revert sampling patch for EXPLAIN ANALYZE; it turns out to be too unreliable because node timing is much less predictable than the patch expects. I kept the API change for InstrStopNode, however. 5de0cbdf | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 09, 2006 |
| CommitterBackported | Fix bootstrap.c so that database startup process and bgwriter properly release LWLocks during a panic exit. This avoids the possible self-deadlock pointed out by Qingqing Zhou. Also, I noted that an error during LoadFreeSpaceMap() or BuildFlatFiles() would result in exit(0) which would leave the postmaster thinking all is well. Added a critical section to ensure such errors don't allow startup to proceed. 1358466a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jun 08, 2006 |
| Committer | Remove obsolete comment about VACUUM FULL: it takes buffer content locks now, and must do so to ensure bgwriter doesn't write a page that is in process of being compacted. 8ff80c1b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 08, 2006 |
| Committer | Per previous analysis, the most correct notion of SampleOverhead is that it is just the total time to do INSTR_TIME_SET_CURRENT(), and not any of the other code involved in InstrStartNode/InstrStopNode. Even though I fear we may end up reverting this patch altogether, we may as well have the most correct version in our CVS archive. d8364f3f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 07, 2006 |
| CommitterBackported | Remove "fuzzy comparison" logic in qsort comparison function for choose_bitmap_and(). It was way too fuzzy --- per comment, it was meant to be 1% relative difference, but was actually coded as 0.01 absolute difference, thus causing selectivities of say 0.001 and 0.000000000001 to be treated as equal. I believe this thinko explains Maxim Boguk's recent complaint. While we could change it to a relative test coded like compare_fuzzy_path_costs(), there's a bigger problem here, which is that any fuzziness at all renders the comparison function non-transitive, which could confuse qsort() to the point of delivering completely wrong results. So forget the whole thing and just do an exact comparison. ae0c8d09 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jun 07, 2006 |
| Committer | Make the planner estimate costs for nestloop inner indexscans on the basis that the Mackert-Lohmann formula applies across all the repetitions of the nestloop, not just each scan independently. We use the M-L formula to estimate the number of pages fetched from the index as well as from the table; that isn't what it was designed for, but it seems reasonably applicable anyway. This makes large numbers of repetitions look much cheaper than before, which accords with many reports we've received of overestimation of the cost of a nestloop. Also, change the index access cost model to charge random_page_cost per index leaf page touched, while explicitly not counting anything for access to metapage or upper tree pages. This may all need tweaking after we get some field experience, but in simple tests it seems to be giving saner results than before. The main thing is to get the infrastructure in place to let cost_index() and amcostestimate functions take repeated scans into account at all. Per my recent proposal. 8a30cc21 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 06, 2006 |
| Committer | Remove extremely old, incomplete, broken example code. Per my proposal a few days ago. ff0ac57d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 05, 2006 |
| Committer | While making the seq_page_cost changes, I was struck by the fact that cost_nonsequential_access() is really totally inappropriate for its only remaining use, namely estimating I/O costs in cost_sort(). The routine was designed on the assumption that disk caching might eliminate the need for some re-reads on a random basis, but there's nothing very random in that sense about sort's access pattern --- it'll always be picking up the oldest outputs. If we had a good fix on the effective cache size we might consider charging zero for I/O unless the sort temp file size exceeds it, but that's probably putting much too much faith in the parameter. Instead just drop the logic in favor of a fixed compromise between seq_page_cost and random_page_cost per page of sort I/O. 7868590c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 05, 2006 |
| Committer | Increase the default value of cpu_index_tuple_cost from 0.001 to 0.005. This shouldn't affect simple indexscans much, while for bitmap scans that are touching a lot of index rows, this seems to bring the estimates more in line with reality. Per recent discussion. e4de635a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 05, 2006 |
| Committer | Add a GUC parameter seq_page_cost, and use that everywhere we formerly assumed that a sequential page fetch has cost 1.0. This patch doesn't in itself change the system's behavior at all, but it opens the door to people adopting other units of measurement for EXPLAIN costs. Also, if we ever decide it's worth inventing per-tablespace access cost settings, this change provides a workable intellectual framework for that. eed6c9ed | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 05, 2006 |
| Committer | Don't choke during startup if the environment offers an invalid value for LC_MESSAGES; instead, just press forward, leaving the effective setting at 'C'. There is not any very good reason to complain when we are going to replace the value soon with whatever postgresql.conf says. This change should solve the occasionally-reported problem of initdb failing with 'failed to initialize lc_messages'; the current theory is that that is a reflection of either wrong LANG/LC_MESSAGES or completely broken locale support. f2de12e5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 03, 2006 |
| CommitterBackported | Fix copy-and-pasteo in Russian translation: message complaining about HAVE_INT64_TIMESTAMP was mentioning PG_CONTROL_VERSION instead. Victor Snezhko 84e741f4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+21 more | No linked thread | Jun 03, 2006 |
| Committer | Mention pg_encoding_to_char in entry for pg_database.encoding. Per Larry Rosenman. 12e84242 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 03, 2006 |
| Committer | Back-port Postgres 7.4 spinlock code into 7.3 branch. This adds previously-missing spinlock code for x86_64 and ppc64 architectures, converts the ppc/ppc64 code into gcc inlines, and provides a better spinlock backoff algorithm on all architectures. Aside from being almost identical to the community 7.4 source code, this exact patch has been in use for awhile in Red Hat's RHEL3 RPMs, so I have pretty good confidence in it. Why bother, you ask? I'm taking pity on a couple of buildfarm members that have been vainly trying to build 7.3 on these 64-bit architectures. 9e632756 | REL7_3_STABLE7.3.16 | No linked thread | Jun 01, 2006 |
| CommitterBackported | Pre-8.0 branches need to cope with possibility that the system libc knows about the recent changes in US DST law. Add a variant horology file, so that either the old or new rules will be considered valid test results. d4f4bc1c | REL7_4_STABLE7.4.14REL7_3_STABLE7.3.16 | No linked thread | Jun 01, 2006 |
| Committer | Back-port recent ppport.h fix to 8.0 branch. 9b3d3e9b | REL8_0_STABLE8.0.9 | No linked thread | Jun 01, 2006 |
| Committer | Got tired of waiting for spoonbill's compiler to get fixed. Let's see if using an intermediate variable avoids the gcc bug. d77df813 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 01, 2006 |
| Committer | Respond to Jeremy Drake's original gripe that \copy needs to recognize E'...' syntax for strings in order to track the backend. 87e8014d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 01, 2006 |
| Committer | Fix up hack to suppress escape_string_warning so that it actually works and there's only one place that's a kluge, ie, appendStringLiteralConn. Note that pg_dump itself doesn't use appendStringLiteralConn, so its behavior is not affected; only the other utility programs care. 6178762f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jun 01, 2006 |
| Committer | Fix example of how to escape data in psql backslash commands. 27030075 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 31, 2006 |
| Committer | Fix seriously broken patch for psql '' ... per its comment, emit() is NOT the thing to use here. c6d3c1b8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 31, 2006 |
| Committer | Make PG_MODULE_MAGIC required in shared libraries that are loaded into the server. Per discussion, there seems no point in a waiting period before making this required. 8f165ee1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 31, 2006 |
| Committer | Magic blocks don't do us any good unless we use 'em ... so install one in every shared library. a0ffab35 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 30, 2006 |
| Committer | Un-DOS-ify newly added files. e95703ea | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 30, 2006 |
| Committer | Code review for magic-block patch. Remove separate header file pgmagic.h, as this seems only likely to create headaches for module developers. Put the macro in the pre-existing fmgr.h file instead. Avoid being too cute about how many fields we can cram into a word, and avoid trying to fetch from a library we've already unlinked. Along the way, it occurred to me that the magic block really ought to be 'const' so it can be stored in the program text area. Do the same for the existing data blocks for PG_FUNCTION_INFO_V1 functions. e60cb3a3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 30, 2006 |
| Committer | Code review for EXPLAIN patch. Fix some typos, make it behave sanely across multiple loops, get rid of the shaky assumption that exactly one tuple is returned per node iteration. a18ebc55 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 30, 2006 |
| CommitterBackported | PostmasterIsAlive test really ought to be in the inner loop for safety. 3993bd8e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 30, 2006 |
| CommitterBackported | Remove pqsignalinquire(), which is unused and has portability issues. 03f96364 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | May 30, 2006 |
| CommitterBackported | Update ppport.h to not cause warnings with newest Perl versions. This is just the minimal necessary change; we might want to adopt later PPPort output instead. d898de1f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 30, 2006 |
| Committer | Clarify the HINT for 'checkpoint request failed', per recent complaint demonstrating that its intent wasn't obvious. 53d669e5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 30, 2006 |
| Committer | Fix ancient misdescription of namegt/namege in comment. Greg Stark d52a97dd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 30, 2006 |
| Committer | enlargePQExpBuffer, alone among the functions exported by pqexpbuffer.h, wasn't exported by exports.txt. Ooops. Per buildfarm results. fd15c87a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 28, 2006 |
| Committer | Fix up pg_dump to do string escaping fully correctly for client encoding and standard_conforming_strings; likewise for the other client programs that need it. As per previous discussion, a pg_dump dump now conforms to the standard_conforming_strings setting of the source database. We don't use E'' syntax in the dump, thereby improving portability of the SQL. I added a SET escape_strings_warning = off command to keep the dumps from getting a lot of back-chatter from that. 134b463f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 28, 2006 |
| Committer | Revert ill-considered change to plpgsql: it should not rely on the current setting of standard_conforming_strings to decide how to quote strings that will be used later. There is much more to do here but this particular change breaks the build on Windows, so fix it now. 4627a8f4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 27, 2006 |
| CommitterBackported | Fix initdb to properly escape quotes and backslashes in the supplied superuser password, and also in the paths of the various files it issues SQL COPY commands for. Per bug #2424. 58a2dbc7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 27, 2006 |
| Committer | Re-introduce the yylex filter function formerly used to support UNION JOIN, which I removed in a recent fit of over-optimism that we wouldn't have any future use for it. Now it's needed to support disambiguating WITH CHECK OPTION from WITH TIME ZONE. As proof of concept, add stub grammar productions for WITH CHECK OPTION. 0780ce6a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 27, 2006 |
| Committer | Further hacking on performance of COPY OUT. It seems that fwrite()'s per-call overhead is quite significant, at least on Linux: whatever it's doing is more than just shoving the bytes into a buffer. Buffering the data so we can call fwrite() just once per row seems to be a win. 4d63e267 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 26, 2006 |
| Committer | Support binary COPY through psql. Also improve detection of write errors during COPY OUT. Andreas Pflug, some editorialization by moi. 223ae695 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 26, 2006 |
| Committer | Reduce per-character overhead in COPY OUT by combining calls to CopySendData. 0a5fdb0d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 25, 2006 |
| CommitterBackported | Fix pg_restore to process BLOB COMMENT entries correctly; they aren't really tables and shouldn't get DISABLE TRIGGER processing. Per bug #2452 from Robert Treat. c76cb771 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 24, 2006 |
| Committer | Tweak writetup_heap/readtup_heap to avoid storing the tuple identity and transaction visibility fields of tuples being sorted. These are always uninteresting in a tuple being sorted (if the fields were actually selected, they'd have been pulled out into user columns beforehand). This saves about 24 bytes per row being sorted, which is a useful savings for any but the widest of sort rows. Per recent discussion. 7f52e0c5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 23, 2006 |
| Committer | Klugy fix for bug #2447: we can't expand a whole-row reference to NEW in a rule WHERE expression while inserting it into the original query, because the 8.0 ResolveNew API is wrongly designed. This is fixed in 8.1 but I'm disinclined to risk back-porting the changes. Instead, just stop the coredump and instead issue the same 'cannot handle whole-row reference' message that 7.4 and before generated in this situation. f966dccb | REL8_0_STABLE8.0.9 | No linked thread | May 23, 2006 |
| Committer | Remove CXT_printf/CXT1_printf macros. If anyone had found them to be of any use in the past many years, we'd have made some effort to include them in all executor node types; but in fact they were only in nodeAppend.c and nodeIndexscan.c, up until I copied nodeIndexscan.c's occurrence into the new bitmap node types. Remove some other unused macros in execdebug.h, too. Some day the whole header probably ought to go away in favor of better-designed facilities. 798e63ff | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 23, 2006 |
| Committer | Stamp release 7.3.15. e675978f | REL7_3_STABLE7.3.15 | No linked thread | May 21, 2006 |
| Committer | Stamp release 7.4.13. 82f56fad | REL7_4_STABLE7.4.13 | No linked thread | May 21, 2006 |
| Committer | Stamp release 8.0.8. f39fc476 | REL8_0_STABLE8.0.8 | No linked thread | May 21, 2006 |
| Committer | Stamp release 8.1.4. 313a720f | REL8_1_STABLE8.1.4 | No linked thread | May 21, 2006 |
| CommitterBackported | Update release notes for upcoming releases. e9cc5302 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | May 21, 2006 |
| Committer | Fix missed \' to '' conversion. 6450cee4 | REL8_0_STABLE8.0.8 | No linked thread | May 21, 2006 |
| CommitterBackported | Fix errors in fortuna PRNG reseeding logic that could cause a predictable session key to be selected by pgp_sym_encrypt() in some cases. This only affects non-OpenSSL-using builds. Marko Kreen 5cf07901 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 21, 2006 |
| CommitterBackported | Modify libpq's string-escaping routines to be aware of encoding considerations and standard_conforming_strings. The encoding changes are needed for proper escaping in multibyte encodings, as per the SQL-injection vulnerabilities noted in CVE-2006-2313 and CVE-2006-2314. Concurrent fixes are being applied to the server to ensure that it rejects queries that may have been corrupted by attempted SQL injection, but this merely guarantees that unpatched clients will fail rather than allow injection. An actual fix requires changing the client-side code. While at it we have also fixed these routines to understand about standard_conforming_strings, so that the upcoming changeover to SQL-spec string syntax can be somewhat transparent to client code. 515112f9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | May 21, 2006 |
| CommitterBackported | Add a new GUC parameter backslash_quote, which determines whether the SQL parser will allow "\'" to be used to represent a literal quote mark. The "\'" representation has been deprecated for some time in favor of the SQL-standard representation "''" (two single quote marks), but it has been used often enough that just disallowing it immediately won't do. Hence backslash_quote allows the settings "on", "off", and "safe_encoding", the last meaning to allow "\'" only if client_encoding is a valid server encoding. That is now the default, and the reason is that in encodings such as SJIS that allow 0x5c (ASCII backslash) to be the last byte of a multibyte character, accepting "\'" allows SQL-injection attacks as per CVE-2006-2314 (further details will be published after release). The "on" setting is available for backward compatibility, but it must not be used with clients that are exposed to untrusted input. b3eb4ea5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | May 21, 2006 |
| CommitterBackported | Change the backend to reject strings containing invalidly-encoded multibyte characters in all cases. Formerly we mostly just threw warnings for invalid input, and failed to detect it at all if no encoding conversion was required. The tighter check is needed to defend against SQL-injection attacks as per CVE-2006-2313 (further details will be published after release). Embedded zero (null) bytes will be rejected as well. The checks are applied during input to the backend (receipt from client or COPY IN), so it no longer seems necessary to check in textin() and related routines; any string arriving at those functions will already have been validated. Conversion failure reporting (for characters with no equivalent in the destination encoding) has been cleaned up and made consistent while at it. c61a2f58 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | May 21, 2006 |
| CommitterBackported | Fix nasty bug in nodeIndexscan.c's detection of duplicate tuples during a multiple (OR'ed) indexscan. It was checking for duplicate tuple->t_data->t_ctid, when what it should be checking is tuple->t_self. The trouble situation occurs when a live tuple has t_ctid not pointing to itself, which can happen if an attempted UPDATE was rolled back. After a VACUUM, an unrelated tuple could be installed where the failed update tuple was, leading to one live tuple's t_ctid pointing to an unrelated tuple. If one of these tuples is fetched by an earlier OR'ed indexscan and the other by a later indexscan, nodeIndexscan.c would incorrectly ignore the second tuple. The bug exists in all 7.4.* and 8.0.* versions, but not in earlier or later branches because this code was only used in those releases. Per trouble report from Rafael Martinez Guerrero. a2e70369 | REL8_0_STABLE8.0.8REL7_4_STABLE7.4.13 | No linked thread | May 19, 2006 |
| CommitterBackported | Fix choose_bitmap_and() so that partial index predicates are considered when deciding whether a potential additional indexscan is redundant or not. As now coded, any use of a partial index that was already used in a previous AND arm will be rejected as redundant. This might be overly restrictive, but not considering the point at all is definitely bad, as per example in bug #2441 from Arjen van der Meijden. In particular, a clauseless scan of a partial index was *never* considered redundant by the previous coding, and that's surely wrong. Being more flexible would also require some consideration of how not to double-count the index predicate's selectivity. eed57b1b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 18, 2006 |
| CommitterBackported | When a bitmap indexscan is using a partial index, it is necessary to include the partial index predicate in the scan's "recheck condition". Otherwise, if the scan becomes lossy for lack of bitmap memory, we would fail to enforce that returned rows satisfy the predicate. Noted while studying bug #2441 from Arjen van der Meijden. f3232526 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 18, 2006 |
| Committer | Fix thinko in recent changes to handle ScalarArrayOpExpr as an indexable condition: when there are multiple possible index paths involving ScalarArrayOpExprs, they are logically to be ANDed together not ORed. This thinko was a direct consequence of trying to put the processing inside generate_bitmap_or_paths(), which I now see was a bit too cute. So pull it out and make the callers do it separately (there are only two that need it anyway). Partially responds to bug #2441 from Arjen van der Meijden. There are some additional infelicities exposed by his example, but they are also in 8.1.x, while this mistake is not. d18e334c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 18, 2006 |
| CommitterBackported | Fix the sense of the test on DH_check()'s return value. This was preventing custom-generated DH parameters from actually being used by the server. Found by Michael Fuhr. 91d568e9 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | May 12, 2006 |
| Committer | Upon closer inspection, the sparc code in s_lock.c is dead code, and always has been, because it's not got any .globl declaration! We've been relying on the solaris_sparc.s code instead. Rip it out. (Not back-patched, since this is just cosmetic cleanup.) 2246e317 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 12, 2006 |
| CommitterBackported | Remove unnecessary .seg/.section directives, per Alan Stange. ab1ad7a6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | May 11, 2006 |
| Committer | Code review for standard_conforming_strings patch. Fix it so it does not throw warnings for 100%-SQL-standard constructs, clean up some minor infelicities, try to un-break ecpg to the best of my ability. (It's not clear how ecpg is going to find out the setting of standard_conforming_strings, though.) I think pg_dump still needs work, too. 637028af | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 11, 2006 |
| Committer | Clean up code associated with updating pg_class statistics columns (relpages/reltuples). To do this, create formal support in heapam.c for "overwrite" tuple updates (including xlog replay capability) and use that instead of the ad-hoc overwrites we'd been using in VACUUM and CREATE INDEX. Take the responsibility for updating stats during CREATE INDEX out of the individual index AMs, and do it where it belongs, in catalog/index.c. Aside from being more modular, this avoids having to update the same tuple twice in some paths through CREATE INDEX. It's probably not measurably faster, but for sure it's a lot cleaner than before. 3fdeb189 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 10, 2006 |
| Committer | Rewrite btree vacuuming to fold the former bulkdelete and cleanup operations into a single mostly-physical-order scan of the index. This requires some ticklish interlocking considerations, but should create no material performance impact on normal index operations (at least given the already-committed changes to make scans work a page at a time). VACUUM itself should get significantly faster in any index that's degenerated to a very nonlinear page order. Also, we save one pass over the index entirely, except in the case where there were no deletions to do and so only one pass happened anyway. 5749f6ef | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 08, 2006 |
| Committer | Rewrite btree index scans to work a page at a time in all cases (both btgettuple and btgetmulti). This eliminates the problem of "re-finding" the exact stopping point, since the stopping point is effectively always a page boundary, and index items are never moved across pre-existing page boundaries. A small penalty is that the keys_are_unique optimization is effectively disabled (and, therefore, is removed in this patch), causing us to apply _bt_checkkeys() to at least one more tuple than necessary when looking up a unique key. However, the advantages for non-unique cases seem great enough to accept this tradeoff. Aside from simplifying and (sometimes) speeding up the indexscan code, this will allow us to reimplement btbulkdelete as a largely sequential scan instead of index-order traversal, thereby significantly reducing the cost of VACUUM. Those changes will come in a separate patch. 09cb5c0e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 07, 2006 |
| Committer | Further minor simplification of relcache startup: don't need a static needNewCacheFile flag anymore, it can just be local in RelationCacheInitializePhase2. cbc0539c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 06, 2006 |
| Committer | Don't try to compile SSL CRL support if local SSL installation hasn't got it. Per buildfarm failure on 'canary'. 1e3496f2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 04, 2006 |
| Committer | Code review for contrib/pg_freespacemap. Add a storedpages column to pg_freespacemap_relations --- while one could theoretically get that number by counting rows in pg_freespacemap_pages, it's surely the hard way to do it. Avoid expensive and inconvenient conversion to and from text format. Minor code and docs cleanup. a43974c6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 04, 2006 |
| Committer | Simplify relcache startup sequence. With the new design of InitPostgres it's not necessary to have three separate calls anymore. This patch also fixes things so we don't try to read pg_internal.init until after we've obtained lock on the target database; which was fairly harmless, but it's certainly cleaner this way. 46287bd6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 04, 2006 |
| Committer | Rethink the locking mechanisms used for CREATE/DROP/RENAME DATABASE. The former approach used ExclusiveLock on pg_database, which being a cluster-wide lock meant only one of these operations could proceed at a time; worse, it also blocked all incoming connections in ReverifyMyDatabase. Now that we have LockSharedObject(), we can use locks of different types applied to databases considered as objects. This allows much more flexible management of the interlocking: two CREATE DATABASEs need not block each other, and need not block connections except to the template database being used. Similarly DROP DATABASE doesn't block unrelated operations. The locking used in flatfiles.c is also much narrower in scope than before. Per recent proposal. 52667d56 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 04, 2006 |
| Committer | Create a syscache for pg_database-indexed-by-oid, and make use of it in various places that were previously doing ad hoc pg_database searches. This may speed up database-related privilege checks a little bit, but the main motivation is to eliminate the performance reason for having ReverifyMyDatabase do such a lot of stuff (viz, avoiding repeat scans of pg_database during backend startup). The locking reason for having that routine is about to go away, and it'd be good to have the option to break it up. cb98e6fb | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 03, 2006 |
| CommitterBackported | Fix calculation of plan node extParams to account for the possibility that one initPlan sets a parameter for another. This could not (I think) happen before 8.1, but it's possible now because the initPlans generated by MIN/MAX optimization might themselves use initPlans. We attach those initPlans as siblings of the MIN/MAX ones, not children, to avoid duplicate computation when multiple MIN/MAX aggregates are present; so this leads to the case of an initPlan needing the result of a sibling initPlan, which is not possible with ordinary query nesting. Hadn't been noticed because in most contexts having too much stuff listed in extParam is fairly harmless. Fixes "plan should not reference subplan's variable" bug reported by Catalin Pitis. f4923880 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 03, 2006 |
| Committer | Clean up API for ambulkdelete/amvacuumcleanup as per today's discussion. This formulation requires every AM to provide amvacuumcleanup, unlike before, but it's surely a whole lot cleaner. Also, add an 'amstorage' column to pg_am so that we can get rid of hardwired knowledge in DefineOpClass(). e5734597 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 02, 2006 |
| Committer | Fix broken markup. d3171dd6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 02, 2006 |
| Committer | Suppress some gcc warnings. 67030eec | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 02, 2006 |
| Committer | Fix grammar of new error message. 2610a1fd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 02, 2006 |
| CommitterBackported | Avoid assuming that statistics for a parent relation reflect the properties of the union of its child relations as well. This might have been a good idea when it was originally coded, but it's a fatally bad idea when inheritance is being used for partitioning. It's better to have no stats at all than completely misleading stats. Per report from Mark Liberman. 427c6b5b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | May 02, 2006 |
| Committer | Provide a namespace.c function for lookup of an operator with exact input datatypes given, and use this before trying OpernameGetCandidates. This is faster than the old method when there's an exact match, and it does not seem materially slower when there's not. And it definitely makes some of the callers cleaner, because they didn't really want to know about a list of candidates anyway. Per discussion with Atsushi Ogawa. a65a4942 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | May 01, 2006 |
| Committer | Code review for GRANT CONNECT patch. Spell the privilege as CONNECT not CONNECTION, fix a number of places that were missed (eg pg_dump support), avoid executing an extra search of pg_database during startup. 82a2881c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 30, 2006 |
| Committer | Improve the representation of FOR UPDATE/FOR SHARE so that we can support both FOR UPDATE and FOR SHARE in one command, as well as both NOWAIT and normal WAIT behavior. The more general code is actually simpler and cleaner. 986085a7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 30, 2006 |
| Committer | Remove sema.c, superseded by win32_sema.c. 366682fb | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 29, 2006 |
| Committer | Rearrange some configure.in comments for better readability. Commit configure and pg_config.h.in, missed in last configure.in update. f0df0967 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 29, 2006 |
| Committer | We only need to add thread.c on non-WIN32 platforms, since get_home_path doesn't use pqGetpwuid on WIN32. Rather than try to figure out why it won't build on WIN32, just remove it. de762468 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 29, 2006 |
| CommitterBackported | Remove the restriction originally coded into optimize_minmax_aggregates() that MIN/MAX not be converted to use an index if the query WHERE clause contains any volatile functions or subplans. 53ee9f52 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 28, 2006 |
| Committer | Arrange to strip libpq.so of symbols that aren't officially supposed to be exported on Linux and Darwin. We already did this on Windows but that's not enough, as evidenced by the fact that libecpg had an unexpected dependency on one such symbol. We should try to do it on more platforms. Fix ecpg's oversight, and bump libpq's major .so version number to reflect the unwanted but nonetheless real ABI break. 1e7bb2da | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 28, 2006 |
| Committer | Fix ltreeparentsel so it actually works ... 4ade4fe4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 27, 2006 |
| Committer | Generalize mcv_selectivity() to support both VAR OP CONST and CONST OP VAR cases. This was not needed in the existing uses within selfuncs.c, but if we're gonna export it for general use, the extra generality seems helpful. Motivated by looking at ltree example. 0f0a3309 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 27, 2006 |
| Committer | Un-break ltree. f66a3ca2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 27, 2006 |
| Committer | If we're going to expose VariableStatData for contrib modules to use, then we should export a reasonable set of the supporting routines too. a3c1a11f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 27, 2006 |
| CommitterBackported | Revise large-object access routines to avoid running with CurrentMemoryContext set to the large object context ("fscxt"), as this is inevitably a source of transaction-duration memory leaks. Not sure why we'd not noticed it before; maybe people weren't touching a whole lot of LOs in the same transaction before the 8.1 pg_dump changes. Per report from Wayne Conrad. 486f994b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 26, 2006 |
| Committer | Arrange to cache btree metapage data in the relcache entry for the index, thereby saving a visit to the metapage in most index searches/updates. This wouldn't actually save any I/O (since in the old regime the metapage generally stayed in cache anyway), but it does provide a useful decrease in bufmgr traffic in high-contention scenarios. Per my recent proposal. d2896a9e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 25, 2006 |
| Committer | Back out the rest of the RESET CONNECTION patch. 7e2d5594 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 25, 2006 |
| CommitterBackported | The 8.1 planner removes WHERE quals from the plan when the quals are implied by the predicate of a partial index being used to scan a table. However, this optimization is unsafe in an UPDATE, DELETE, or SELECT FOR UPDATE query, because the quals need to be rechecked by EvalPlanQual if there's an update conflict. Per example from Jean-Samuel Reynaud. 1e3593ce | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 25, 2006 |
| CommitterBackported | Improve our private implementation of cbrt() to give results of the accuracy expected by the regression tests. Per suggestion from Martijn van Oosterhout. 332ea60d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 24, 2006 |
| Committer | Simplify ParamListInfo data structure to support only numbered parameters, not named ones, and replace linear searches of the list with array indexing. The named-parameter support has been dead code for many years anyway, and recent profiling suggests that the searching was costing a noticeable amount of performance for complex queries. 2206b498 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 22, 2006 |
| Committer | Add some optional code (conditionally compiled under #ifdef LWLOCK_STATS) to track the number of LWLock acquisitions and the number of times we block waiting for an LWLock, on a per-process basis. After having needed this twice in the past few months, seems like it should go into CVS. b5498a26 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 21, 2006 |
| Committer | Eliminate some no-longer-needed workarounds for palloc's old behavior of rejecting palloc(0). Also, tweak like_selectivity() to avoid assuming the presented pattern is nonempty; although that assumption is valid, it doesn't really help much, and the new coding is more correct anyway since it properly handles redundant wildcards. In combination these changes should eliminate a Coverity warning noted by Martijn. efe22226 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 20, 2006 |
| Committer | Ensure that we validate the page header of the first page of a WAL file whenever we start to read within that file. The first page carries extra identification information that really ought to be checked, but as the code stood, this was only checked when we switched sequentially into a new WAL file, or if by chance the starting checkpoint record was within the first page. This patch ensures that we will detect bogus 'long header' information before we start replaying the WAL sequence. eac825aa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 20, 2006 |
| Committer | Recognize __ppc64__, which seems to be Apple's spelling of the predefined symbol for PPC64 hardware. I hadn't known that Apple supported PPC64 at all, but darn if there aren't 64-bit variant libraries in OS X as well as support in their gcc. cc7eab38 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 19, 2006 |
| Committer | Remove use of lorder and tsort while building static libraries. There's no evidence that any currently-supported platform needs this, and good reason to think that any platform that did need it couldn't use the static libraries anyway --- libpq, at least, has circular references. Removing the code shuts up tsort warnings about the circular references on some platforms. 04ca4caa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 19, 2006 |
| CommitterBackported | Fix ancient memory leak in PQprintTuples(); our code no longer uses this routine, but perhaps some applications do. Found by Martijn van Oosterhout using Coverity. 8f52496a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Apr 19, 2006 |
| Committer | Fix a couple of rather-pointless-but-easily-fixed Coverity warnings. Per Martijn van Oosterhout. 3224f2ee | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 19, 2006 |
| Committer | Fix the torn-page hazard for PITR base backups by forcing full page writes to occur between pg_start_backup() and pg_stop_backup(), even if the GUC setting full_page_writes is OFF. Per discussion, doing this in combination with the already-existing checkpoint during pg_start_backup() should ensure safety against partial page updates being included in the backup. We do not have to force full page writes to occur during normal PITR operation, as I had first feared. 0a873949 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 17, 2006 |
| Committer | Support the syntax CREATE AGGREGATE aggname (input_type) (parameter_list) along with the old syntax where the input type was named in the parameter list. This fits more naturally with the way that the aggregate is identified in DROP AGGREGATE and other utility commands; furthermore it has a natural extension to handle multiple-input aggregates, where the basetype-parameter method would get ugly. In fact, this commit fixes the grammar and all the utility commands to support multiple-input aggregates; but DefineAggregate rejects it because the executor isn't fixed yet. I didn't do anything about treating agg(*) as a zero-input aggregate instead of artificially making it a one-input aggregate, but that should be considered in combination with supporting multi-input aggregates. 3651a3e6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 15, 2006 |
| Committer | Make the world safe for full_page_writes. Allow XLOG records that try to update no-longer-existing pages to fall through as no-ops, but make a note of each page number referenced by such records. If we don't see a later XLOG entry dropping the table or truncating away the page, complain at the end of XLOG replay. Since this fixes the known failure mode for full_page_writes = off, revert my previous band-aid patch that disabled that GUC variable. defe9346 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 14, 2006 |
| Committer | Repair a low-probability race condition identified by Qingqing Zhou. If a process abandons a wait in LockBufferForCleanup (in practice, only happens if someone cancels a VACUUM) just before someone else sends it a signal indicating the buffer is available, it was possible for the wakeup to remain in the process' semaphore, causing misbehavior next time the process waited for an lmgr lock. Rather than try to prevent the race condition directly, it seems best to make the lock manager robust against leftover wakeups, by having it repeat waiting on the semaphore if the lock has not actually been granted or denied yet. 0fcc3c2f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 14, 2006 |
| CommitterBackported | Fix similar_escape() so that SIMILAR TO works properly for patterns involving alternatives ("|" symbol). The original coding allowed the added ^ and $ constraints to be absorbed into the first and last alternatives, producing a pattern that would match more than it should. Per report from Eric Noriega. cc39aca7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+21 more | No linked thread | Apr 13, 2006 |
| Committer | Fix an ancient oversight in btree xlog replay. When trying to determine if an upper-level insertion completes a previously-seen split, we cannot simply grab the downlink block number out of the buffer, because the buffer could contain a later state of the page --- or perhaps the page doesn't even exist at all any more, due to relation truncation. These possibilities have been masked up to now because the use of full_page_writes effectively ensured that no xlog replay routine ever actually saw a page state newer than its own change. Since we're deprecating full_page_writes in 8.1.*, there's no need to fix this in existing release branches, but we need a fix in HEAD if we want to have any hope of re-allowing full_page_writes. Accordingly, adjust the contents of btree WAL records so that we can always get the downlink block number from the WAL record rather than having to depend on buffer contents. Per report from Kevin Grittner and Peter Brant. 49a7610c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 13, 2006 |
| CommitterBackported | Fix pg_restore -n option to do what the man page says it does. The original coding only worked if one of the selTypes restriction options was also given. Per report from Nick Johnson. 3ef151e0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 12, 2006 |
| Committer | Suppress unused-variable warning on platforms without HAVE_SYSLOG. Magnus 2f9b3ef7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 10, 2006 |
| Committer | Fix another const-decoration mismatch, per Magnus. 84869213 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 09, 2006 |
| Committer | Suppress a couple of minor compiler warnings, per Magnus. 513ec43e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 09, 2006 |
| CommitterBackported | Revert my best_inner_indexscan patch of yesterday, which turns out to have had a bad side-effect: it stopped finding plans that involved BitmapAnd combinations of indexscans using both join and non-join conditions. Instead, make choose_bitmap_and more aggressive about detecting redundancies between BitmapOr subplans. a81e2816 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 09, 2006 |
| CommitterBackported | Fix best_inner_indexscan to actually enforce that an "inner indexscan" use at least one join condition as an indexqual. Before bitmap indexscans, this oversight didn't really cost much except for redundantly considering the same join paths twice; but as of 8.1 it could result in silly bitmap scans that would do the same BitmapOr twice and then BitmapAnd these together :-( 898eb254 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 08, 2006 |
| Committer | Fix EXPLAIN so that it can drill down through multiple levels of subplan when trying to locate the referent of a RECORD variable. This fixes the 'record type has not been registered' failure reported by Stefan Kaltenbrunner about a month ago. A side effect of the way I chose to fix it is that most variable references in join conditions will now be properly labeled with the variable's source table name, instead of the not-too-helpful 'outer' or 'inner' we used to use. c6e81aee | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 08, 2006 |
| CommitterBackported | Fix pg_dumpall to do something sane when a pre-8.1 installation has identically named user and group: we merge these into a single entity with LOGIN permission. Also, add ORDER BY commands to ensure consistent dump ordering, for ease of comparing outputs from different installations. 74bdf965 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 07, 2006 |
| CommitterBackported | Fix make_restrictinfo_from_bitmapqual() to preserve AND/OR flatness of its output, ie, no OR immediately below an OR. Otherwise we get Asserts or wrong answers for cases such as select * from tenk1 a, tenk1 b where (a.ten = b.ten and (a.unique1 = 100 or a.unique1 = 101)) or (a.hundred = b.hundred and a.unique1 = 42); Per report from Rafael Martinez Guerrero. 2f8a7bf2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 07, 2006 |
| Committer | Remove the pgstats logic for delaying destruction of stats table entries. Per recent discussion, this seems to be making the stats less accurate rather than more so, particularly on Windows where PID values may be reused very quickly. Patch by Peter Brant. 0914ae1c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 06, 2006 |
| Committer | Fix a bunch of problems with domains by making them use special input functions that apply the necessary domain constraint checks immediately. This fixes cases where domain constraints went unchecked for statement parameters, PL function local variables and results, etc. We can also eliminate existing special cases for domains in places that had gotten it right, eg COPY. 7fdb4305 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 05, 2006 |
| Committer | Add a field to the first page of each WAL file to indicate the XLOG_BLCKSZ. This ought to help in preventing configuration mismatch problems if anyone tries to ship PITR files between servers compiled with different XLOG_BLCKSZ settings. Simon Riggs 09b5271e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 05, 2006 |
| Committer | Don't use BLCKSZ for the physical length of the pg_control file, but instead a dedicated symbol. This probably makes no functional difference for likely values of BLCKSZ, but it makes the intent clearer. Simon Riggs, minor editorialization by Tom Lane. e6140d90 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 04, 2006 |
| Committer | Modify all callers of datatype input and receive functions so that if these functions are not strict, they will be called (passing a NULL first parameter) during any attempt to input a NULL value of their datatype. Currently, all our input functions are strict and so this commit does not change any behavior. However, this will make it possible to build domain input functions that centralize checking of domain constraints, thereby closing numerous holes in our domain support, as per previous discussion. 147d4bf3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 04, 2006 |
| Committer | Define a separately configurable XLOG_BLCKSZ symbol for the page size used within WAL files. Historically this was the same as the data file BLCKSZ, but there's no necessary connection, and it's possible that performance gains might ensue from reducing XLOG_BLCKSZ. In any case distinguishing two symbols should improve code clarity. This commit does not actually change the page size, only provide the infrastructure to make it possible to do so. initdb forced because of addition of a field to pg_control. Mark Wong, with some help from Simon Riggs and Tom Lane. eaef1113 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 03, 2006 |
| Committer | Fix thinko in gistRedoPageUpdateRecord: if XLR_BKP_BLOCK_1 is set, we don't have anything to do to the page, but we still have to adjust the incomplete_inserts list that we're maintaining in memory. c9a2b6d4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 03, 2006 |
| CommitterBackported | Adjust interval-addition test so that it won't fail on DST transition days. Strange that we missed this DST dependence while fixing the others. 23a1f015 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Apr 02, 2006 |
| Committer | Remove the 'slow' path for btree index build, which built the btree incrementally by successive inserts rather than by sorting the data. We were only using the slow path during bootstrap, apparently because when first written it failed during bootstrap --- but it works fine now AFAICT. Removing it saves a hundred or so lines of code and produces noticeably (~10%) smaller initial states of the system catalog indexes. While that won't make much difference for heavily-modified catalogs, for the more static ones there may be a useful long-term performance improvement. 89bda95d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Apr 01, 2006 |
| Committer | Clean up WAL/buffer interactions as per my recent proposal. Get rid of the misleadingly-named WriteBuffer routine, and instead require routines that change buffer pages to call MarkBufferDirty (which does exactly what it says). We also require that they do so before calling XLogInsert; this takes care of the synchronization requirement documented in SyncOneBuffer. Note that because bufmgr takes the buffer content lock (in shared mode) while writing out any buffer, it doesn't matter whether MarkBufferDirty is executed before the buffer content change is complete, so long as the content change is completed before releasing exclusive lock on the buffer. So it's OK to set the dirtybit before we fill in the LSN. This eliminates the former kluge of needing to set the dirtybit in LockBuffer. Aside from making the code more transparent, we can also add some new debugging assertions, in particular that the caller of MarkBufferDirty must hold the buffer content lock, not merely a pin. a8b8f4db | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 31, 2006 |
| Committer | Improve gist XLOG code to follow the coding rules needed to prevent torn-page problems. This introduces some issues of its own, mainly that there are now some critical sections of unreasonably broad scope, but it's a step forward anyway. Further cleanup will require some code refactoring that I'd prefer to get Oleg and Teodor involved in. 89395bfa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 30, 2006 |
| CommitterBackported | Suppress attempts to report dropped tables to the stats collector from a startup or recovery process. Since such a process isn't a real backend, pgstat.c gets confused. This accounts for recent reports of strange "invalid server process ID -1" log messages during crash recovery. There isn't any point in attempting to make the report, since we'll discard stats in such scenarios anyhow. 4243f238 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 30, 2006 |
| Committer | Clean up and document the API for XLogOpenRelation and XLogReadBuffer. This commit doesn't make much functional change, but it does eliminate some duplicated code --- for instance, PageIsNew tests are now done inside XLogReadBuffer rather than by each caller. The GIST xlog code still needs a lot of love, but I'll worry about that separately. 6d61cdec | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 29, 2006 |
| CommitterBackported | TablespaceCreateDbspace should function normally even on platforms that do not have symlinks (ie, Windows). Although it'll never be called on to do anything useful during normal operation on such a platform, it's still needed to re-create dropped directories during WAL replay. 2154e1c1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Mar 29, 2006 |
| CommitterBackported | Disable full_page_writes, because turning it off risks causing crash-recovery failures even when the hardware and OS did nothing wrong. Per recent analysis of a problem report from Alex Bahdushka. 0a971e2f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 28, 2006 |
| CommitterBackported | Repair longstanding error in btree xlog replay: XLogReadBuffer should be passed extend = true whenever we are reading a page we intend to reinitialize completely, even if we think the page "should exist". This is because it might indeed not exist, if the relation got truncated sometime after the current xlog record was made and before the crash we're trying to recover from. These two thinkos appear to explain both of the old bug reports discussed here: http://archives.postgresql.org/pgsql-hackers/2005-05/msg01369.php 288551fc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+21 more | No linked thread | Mar 28, 2006 |
| CommitterBackported | Comments in IndexBuildHeapScan describe the indexing of recently-dead tuples as needed "to keep VACUUM from complaining", but actually there is a more compelling reason to do it: failure to do so violates MVCC semantics. This is because a pre-existing serializable transaction might try to use the index after we finish (re)building it, and it might fail to find tuples it should be able to see. We got this mostly right, but not in the case of partial indexes: the code mistakenly discarded recently-dead tuples for partial indexes. Fix that, and adjust the comments. 4e7d10c7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 24, 2006 |
| Committer | Arrange to emit a description of the current XLOG record as error context when an error occurs during xlog replay. Also, replace the former risky 'write into a fixed-size buffer with no overflow detection' API for XLOG record description routines; use an expansible StringInfo instead. (The latter accounts for most of the patch bulk.) 0a202070 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 24, 2006 |
| CommitterBackported | Fix plpgsql to pass only one copy of any given plpgsql variable into a SQL command or expression, rather than one copy for each textual occurrence as it did before. This might result in some small performance improvement, but the compelling reason to do it is that not doing so can result in unexpected grouping failures because the main SQL parser won't see different parameter numbers as equivalent. Add a regression test for the failure case. Per report from Robert Davidson. 4fb92718 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 23, 2006 |
| Committer | Add error location info to ResTarget parse nodes. Allows error cursor to be supplied for various mistakes involving INSERT and UPDATE target columns. 19956e0d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 23, 2006 |
| CommitterBackported | Improve performance of our private version of qsort. Per recent testing, the logic it contained to switch to insertion sort for near-sorted input was in fact a big loss, because it could fairly easily be fooled into applying insertion sort to large subfiles that weren't all that well ordered. Remove that, and instead add a simple check for already-perfectly-sorted input, as per suggestion from Dann Corbit. This adds at worst O(N*lgN) overhead, and usually far less, while sometimes allowing a subfile sort to finish in O(N) time. Preliminary testing says this is an improvement over the basic Bentley & McIlroy code for many nonrandom inputs, and it costs almost nothing when the input is random. a3f0b3d6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 21, 2006 |
| CommitterBackported | Adjust join_1.out to match Windows behavior for new mergejoin regression test, per Dave Page and buildfarm. Perhaps we will need a join_2 instead, but for the moment assume that this test tracks the other diffs. 381cb046 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 19, 2006 |
| CommitterBackported | Fix bug introduced into mergejoin logic by performance improvement patch of 2005-05-13. When we find that a new inner tuple can't possibly match any outer tuple (because it contains a NULL), we can't immediately skip the tuple when we are in NEXTINNER state. Doing so can lead to emitting multiple copies of the tuple in FillInner mode, because we may rescan the tuple after returning to a previous marked tuple. Instead, proceed to NEXTOUTER state the same as we used to do. After we've found that there's no need to return to the marked position, we can go to SKIPINNER_ADVANCE state instead of SKIP_TEST when the inner tuple is unmatchable; this preserves the performance improvement. Per bug report from Bruce. I also made a couple of cosmetic code rearrangements and added a regression test for the problem. b3358e26 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 17, 2006 |
| Committer | Fix invalid use of #if within a macro, per Laurenz Albe. Also try to make the LDAP code's error messages look like they were written by someone who had heard of our style guidelines. 92f5bfcc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 16, 2006 |
| Committer | Clean up representation of function RTEs for functions returning RECORD. The original coding stored the raw parser output (ColumnDef and TypeName nodes) which was ugly, bulky, and wrong because it failed to create any dependency on the referenced datatype --- and in fact would not track type renamings and suchlike. Instead store a list of column type OIDs in the RTE. 23160139 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 16, 2006 |
| Committer | It seems the YYLLOC_DEFAULT macro recommended by the Bison 1.875 manual just doesn't work with Bison 2.0 ... fix it ... 1349839c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 14, 2006 |
| Committer | Missed this file in previous commit :-( 35b55097 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 14, 2006 |
| Committer | Improve parser so that we can show an error cursor position for errors during parse analysis, not only errors detected in the flex/bison stages. This is per my earlier proposal. This commit includes all the basic infrastructure, but locations are only tracked and reported for errors involving column references, function calls, and operators. More could be done later but this seems like a good set to start with. I've also moved the ReportSyntaxErrorPosition logic out of psql and into libpq, which should make it available to more people --- even within psql this is an improvement because warnings weren't handled by ReportSyntaxErrorPosition. 20ab467d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 14, 2006 |
| Committer | Recent changes in memory management in tuplesort.c had a problem: the case where we run low on array slots before we run low on memory is much more probable than I had thought, and so it's important to treat each tape fairly in that case. To fix this, track per-tape slot allocations just like we track per-tape space allocation. Also, in the FINALMERGE code path avoid scanning all the input tapes when we really only need to read from one. This should fix poor behavior with very large work_mem as exhibited by Stefan Kaltenbrunner. I didn't do anything about putting an upper bound on the number of tapes, but maybe we should still consider that. c65ab0bf | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 10, 2006 |
| CommitterBackported | Add a CHECK_FOR_INTERRUPTS() in _bt_buildadd(). This fixes problem with not responding to query cancel during the last stage of btree index creation. 9f619249 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 10, 2006 |
| CommitterBackported | Fix order of linking of libxslt and libxml2, per Dave Page. 7d84d3ec | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Mar 10, 2006 |
| CommitterBackported | Add a CHECK_FOR_INTERRUPTS() to the loop in ExecMakeTableFunctionResult. Otherwise you can't cancel queries like select ... from generate_series(1,1000000). bbfa1c39 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 10, 2006 |
| CommitterBackported | Remove somebody's flight of fancy about an UPDATE with ORDER BY and LIMIT. 66fc528d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 08, 2006 |
| Committer | Tweak trace_sort code to show the merge order (number of active input tapes) for each merge step. This will give us some idea of how effective the merge distribution algorithm is. c8cd76de | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 08, 2006 |
| Committer | Further examination of ltsReleaseBlock usage shows that it's got a performance issue during regular merge passes not only the 'final merge' case. The original design contemplated that there would never be more than about one free block per 'tape', hence no need for an efficient method of keeping the free blocks sorted. But given the later addition of merge preread behavior in tuplesort.c, there is likely to be about work_mem worth of free blocks, which is not so small ... and for that matter the number of tapes isn't necessarily small anymore either. So we'd better get rid of the assumption entirely. Instead, I'm assuming that the usage pattern will involve alternation between merge preread and writing of a new run. This makes it reasonable to just add blocks to the list without sorting during successive ltsReleaseBlock calls, and then do a qsort() when we start getting ltsGetFreeBlock() calls. Experimentation seems to confirm that there aren't many qsort calls relative to the number of ltsReleaseBlock/ltsGetFreeBlock calls. 43ceb3d4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 07, 2006 |
| Committer | Repair old performance bug in tuplesort.c/logtape.c. In the case where we are doing the final merge pass on-the-fly, and not writing the data back onto a 'tape', the number of free blocks in the tape set will become large, leading to a lot of time wasted in ltsReleaseBlock(). There is really no need to track the free blocks anymore in this state, so add a simple shutoff switch. Per report from Stefan Kaltenbrunner. 8db05ba4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 07, 2006 |
| Committer | Turn off zero_damaged_pages in the right place (ie, in the autovac process not in the postmaster) and with the right GucSource (needs to be a nontransactional source since we've not started an xact yet). e6107da5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 07, 2006 |
| Committer | Make all our flex and bison files use %option prefix or %name-prefix (respectively) to rename yylex and related symbols. Some were doing it this way already, while others used not-too-reliable sed hacks in the Makefiles. It's all nice and consistent now. fb51ad34 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 07, 2006 |
| Committer | Remove the stub support we had for UNION JOIN; per discussion, this is not likely ever to be implemented seeing it's been removed from SQL2003. This allows getting rid of the 'filter' version of yylex() that we had in parser.c, which should save at least a few microseconds in parsing. 012abeba | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 07, 2006 |
| Committer | 'make clean' should NOT remove *~ files. 48cf2957 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 07, 2006 |
| Committer | Improve OS X shared-memory documentation: fix typos and provide a usable example of /etc/sysctl.conf contents. c1bb2877 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 05, 2006 |
| Committer | Support include directives in postgresql.conf. Patch by Joachim Wieland, somewhat reworked for clarity and portability. 5b8ac710 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 04, 2006 |
| Committer | Declare the arguments of AllocateFile() as const char *, not char *. This is consistent with the standard definition of fopen(). 60d3c9fd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 04, 2006 |
| Committer | Incorporate a couple of recent tuplesort.c improvements into tuplestore.c. In particular, ensure that enlargement of the memtuples[] array doesn't fall foul of MaxAllocSize when work_mem is very large, and don't bother enlarging it if that would force an immediate switch into 'tape' mode anyway. 2689abf0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 04, 2006 |
| CommitterBackported | Prevent lazy_space_alloc from making requests that exceed MaxAllocSize, per report from Stefan Kaltenbrunner. 20bdc713 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 04, 2006 |
| Committer | Prevent sorting from requesting a SortTuple array that exceeds MaxAllocSize; we'll go over to disk-based sort if we reach that limit. This fixes Stefan Kaltenbrunner's observation that sorting can suffer an 'invalid memory alloc request size' failure when sort_mem is set large enough. It's unfortunately not so easy to fix in 8.1 ... 80cadb30 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 04, 2006 |
| Committer | Improve pg_dump and psql to use libpq's newer COPY support routines, instead of the old deprecated ones. Volkan Yazici, with some editorializing by moi. decdaf35 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 03, 2006 |
| Committer | Teach PQcmdTuples() that a COPY command tag might contain a row count, and tighten up its sanity checking of the tag as a safety measure. Volkan Yazici. 523adeb1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 03, 2006 |
| Committer | Make the COPY command return a command tag that includes the number of rows copied. Backend side of Volkan Yazici's recent patch, with corrections and documentation. 023570f5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 03, 2006 |
| Committer | Dept. of second thoughts: rejigger the TRUNCATE ... CASCADE patch so that relations are still checked for permissions etc as soon as they are opened. The original form of the patch could hold exclusive lock for a long time on relations that the user doesn't even have permissions to access, let alone truncate. 4e086f7c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 03, 2006 |
| Committer | Add CASCADE option to TRUNCATE. Joachim Wieland 984a6ced | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 03, 2006 |
| Committer | Arrange to call AbsorbFsyncRequests every so often while performing a checkpoint in the bgwriter. This forestalls overflow of the fsync request queue, which is not fatal but causes considerable performance degradation when it occurs (because backends then have to do their own fsyncs). Per patch from Itagaki Takahiro, modified a little bit by me. 9a506a62 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 03, 2006 |
| Committer | Remove unnecessary lo_lseek call in lo_open. Apparently there was once a need for it back in the neolithic era, but it's certainly dead code in any PG release we would recognize as such. Since it forces an additional network round trip to the backend, getting rid of it should provide some small performance improvement for large-object-using clients. f0bfc020 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 02, 2006 |
| CommitterBackported | Fix ancient error in large objects usage example: overwrite() subroutine was opening with INV_READ flag and then writing. Prior to 8.1 the backend did not reject this, but now it does. 56aa84a6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 02, 2006 |
| CommitterBackported | Repair oidvectorrecv and int2vectorrecv, which I broke while changing them to use array_recv :-(. Per report from Tim Kordas. 9356877b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 02, 2006 |
| CommitterBackported | Fix possible crash at transaction end when a plpgsql function is used and then modified within the same transaction. The code was using a linked list of active PLpgSQL_expr structs, which was OK when it was written because plpgsql never released any parse data structures for the life of the backend. But since Neil fixed plpgsql's memory management, elements of the linked list could be freed, leading to crash when the list is chased. Per report and test case from Kris Jurka. fa7f6ff0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Mar 02, 2006 |
| Committer | Fix up pg_dump to emit shell-type definitions at the proper time, to make use of the recently added ability to create a shell type explicitly. 181f55e5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Mar 02, 2006 |
| Committer | Allow the syntax CREATE TYPE foo, with no parameters, to permit explicit creation of a shell type. This allows a less hacky way of dealing with the mutual dependency between a datatype and its I/O functions: make a shell type, then make the functions, then define the datatype fully. We should fix pg_dump to handle things this way, but this commit just deals with the backend. 8e68d783 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 28, 2006 |
| Committer | Teach nodeSort and nodeMaterial to optimize out unnecessary overhead when the passed-down eflags indicate they can. Simon Riggs and Tom Lane d2c555ee | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 28, 2006 |
| Committer | Extend the ExecInitNode API so that plan nodes receive a set of flag bits indicating which optional capabilities can actually be exercised at runtime. This will allow Sort and Material nodes, and perhaps later other nodes, to avoid unnecessary overhead in common cases. This commit just adds the infrastructure and arranges to pass the correct flag values down to plan nodes; none of the actual optimizations are here yet. I'm committing this separately in case anyone wants to measure the added overhead. (It should be negligible.) 2c0ef977 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 28, 2006 |
| Committer | Improve sorting speed by pre-extracting the first sort-key column of each tuple, as per my proposal of several days ago. Also, clean up sort memory management by keeping all working data in a separate memory context, and refine the handling of low-memory conditions. 909ca140 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 26, 2006 |
| CommitterBackported | Fix vacuumlo to avoid unnecessary use of backslash in search pattern. Per Michael Fuhr. f87d4875 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Feb 23, 2006 |
| CommitterBackported | Fix old pg_dump oversight: default values for domains really need to be dumped by decompiling the typdefaultbin expression, not just printing the typdefault text which may be out-of-date or assume the wrong schema search path. (It's the same hazard as for adbin vs adsrc in column defaults.) The catalogs.sgml spec for pg_type implies that the correct procedure is to look to typdefaultbin first and consider typdefault only if typdefaultbin is NULL. I made dumping of both domains and base types do that, even though in the current backend code typdefaultbin is always correct for domains and typdefault for base types --- might as well try to future-proof it a little. Per bug report from Alexander Galler. 3666260f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Feb 21, 2006 |
| CommitterBackported | Adjust probe for getaddrinfo to cope with macro-ized definitions, such as Tru64's. Per previous discussion. af49a163 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Feb 21, 2006 |
| Committer | Update obsolete comment. 21e2544a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 19, 2006 |
| Committer | Modify logtape.c so that the initial LogicalTapeSetCreate call only allocates the control data. The per-tape buffers are allocated only on first use. This saves memory in situations where tuplesort.c overestimates the number of tapes needed (ie, there are fewer runs than tapes). Also, this makes legitimate the coding in inittapes() that includes tape buffer space in the maximum-memory calculation: when inittapes runs, we've already expended the whole allowed memory on tuple storage, and so we'd better not allocate all the tape buffers until we've flushed some tuples out of memory. b34aa337 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 19, 2006 |
| Committer | Improve tuplesort.c to support variable merge order. The original coding with fixed merge order (fixed number of "tapes") was based on obsolete assumptions, namely that tape drives are expensive. Since our "tapes" are really just a couple of buffers, we can have a lot of them given adequate workspace. This allows reduction of the number of merge passes with consequent savings of I/O during large sorts. df700e6b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 19, 2006 |
| Committer | Since we only use libld on AIX, don't include it in LIBS on any other platforms (it does exist on HPUX, for one). We could probably even make this a test for specific AIX versions, but I don't know which ones need it. bba11cdd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 15, 2006 |
| Committer | Repair --single-transaction patch so it handles blobs correctly. Simon Riggs 0ad14ebc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 14, 2006 |
| CommitterBackported | Move btbulkdelete's vacuum_delay_point() call to a place in the loop where we are not holding a buffer content lock; where it was, InterruptHoldoffCount is positive and so we'd not respond to cancel signals as intended. Also add missing vacuum_delay_point() call in btvacuumcleanup. This should fix complaint from Evgeny Gridasov about failure to respond to SIGINT/SIGTERM in a timely fashion (bug #2257). 2d7f6947 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Feb 14, 2006 |
| CommitterBackported | Add some missing vacuum_delay_point calls in GIST vacuuming. 49758f47 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Feb 14, 2006 |
| Committer | AllocSetStats should probably be using unsigned format to show space totals. 006320e1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 14, 2006 |
| Committer | Need a DLLIMPORT for MaxFSMPages, per buildfarm failure on snake. e9b978c8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 14, 2006 |
| Committer | Add positive defense against trying to connect when the connection option state hasn't been fully set up. This is possible via PQreset() and might occur in other code paths too, so a state flag seems the most robust solution. Per report from Arturs Zoldners. 2fc80b9a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 13, 2006 |
| Committer | IMHO, --single-transaction should wrap *all* the commands in BEGIN/COMMIT, not just some of them. 1cf13e6f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 13, 2006 |
| Committer | Improve documentation of --single-transaction option: fix markup, and don't promise more than the code actually delivers. d537e0b4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 13, 2006 |
| CommitterBackported | Fix qual_is_pushdown_safe to not try to push down quals involving a whole-row Var referencing the subselect output. While this case could possibly be made to work, it seems not worth expending effort on. Per report from Magnus Naeslund(f). 4299a92d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Feb 13, 2006 |
| Committer | Fix build failure when not USE_READLINE. Sergey E. Koposov 562f63b0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 13, 2006 |
| Committer | Stamp 7.3.14. eb46ad56 | REL7_3_STABLE7.3.14 | No linked thread | Feb 12, 2006 |
| Committer | Stamp 7.4.12. a41379fb | REL7_4_STABLE7.4.12 | No linked thread | Feb 12, 2006 |
| Committer | Stamp 8.0.7. a5746b8b | REL8_0_STABLE8.0.7 | No linked thread | Feb 12, 2006 |
| Committer | Stamp 8.1.3. d72c32a0 | REL8_1_STABLE8.1.3 | No linked thread | Feb 12, 2006 |
| CommitterBackported | Update release notes. 47a048f3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Feb 12, 2006 |
| CommitterBackported | Fix bug in SET SESSION AUTHORIZATION that allows unprivileged users to crash the server, if it has been compiled with Asserts enabled (CVE-2006-0553). Thanks to Akio Ishida for reporting this problem. df2c740c | REL8_0_STABLE8.0.7REL7_4_STABLE7.4.12REL7_3_STABLE7.3.14 | No linked thread | Feb 12, 2006 |
| CommitterBackported | Fix bug that allowed any logged-in user to SET ROLE to any other database user id (CVE-2006-0553). Also fix related bug in SET SESSION AUTHORIZATION that allows unprivileged users to crash the server, if it has been compiled with Asserts enabled. The escalation-of-privilege risk exists only in 8.1.0-8.1.2. However, the Assert-crash risk exists in all releases back to 7.3. Thanks to Akio Ishida for reporting this problem. 226a980b | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Feb 12, 2006 |
| CommitterBackported | Fix broken markup. 1ac1526e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Feb 12, 2006 |
| Committer | Apply code-reviewed version of for-scalar-list patch: mostly, fixing it to report reasonable errors in error cases. 15c72174 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 12, 2006 |
| Committer | Clean up plpgsql grammar to make sure that check_assignable() is applied consistently. This is mostly cosmetic right at the moment because check_assignable() does nothing for ROW or RECORD datums, but that might not always be so. This also syncs several different places that read INTO target lists. They're just enough different that it seems impractical to factor them into a single routine, but they surely should be the same as much as possible. f7d98744 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 12, 2006 |
| Committer | Fix more fallout from line-wrap patch, to wit, arbitrarily changing the API of PQdsplen without bothering to fix its callers. Although ReportSyntaxErrorPosition could probably do with more smarts about handling control characters, for the moment I'll just get it back to handling tabs consistently. 6c0d4aab | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 12, 2006 |
| Committer | Undo changes of trailing space in recently-committed expected files. This is mostly just over-compulsiveness on my part, but the exercise did reveal one real bug: errors.out has a space difference now where it should not. 95dbf9c0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 12, 2006 |
| Committer | Restore previous psql behavior of not printing useless trailing spaces after the data in the last column on a line. 3f9d2edd | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 12, 2006 |
| Committer | Actually there's a better way to do this, which is to count tuples during the vacuumcleanup scan that we're going to do anyway. Should save a few cycles (one calculation per page, not per tuple) as well as not having to depend on assumptions about heap and index being in step. I think this could probably be made to work for GIST too, but that code looks messy enough that I'm disinclined to try right now. d52a57fc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 12, 2006 |
| Committer | Skip ambulkdelete scan if there's nothing to delete and the index is not partial. None of the existing AMs do anything useful except counting tuples when there's nothing to delete, and we can get a tuple count from the heap as long as it's not a partial index. (hash actually can skip anyway because it maintains a tuple count in the index metapage.) GIST is not currently able to exploit this optimization because, due to failure to index NULLs, GIST is always effectively partial. Possibly we should fix that sometime. Simon Riggs w/ some review by Tom Lane. fd267c1e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 11, 2006 |
| Committer | Fix incorrect addition, subtraction, and overflow checking in new inet operators. fbb1daed | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 11, 2006 |
| Committer | Clean up signedness warnings and 64-bit bugs in recent psql printing patch. Martijn van Oosterhout and Tom Lane 9bf2ac2a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 10, 2006 |
| Committer | Make it possible to run initdb from an admin account on Windows, by giving up admin privileges (only works if newer than NT4). fc9c20eb | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 10, 2006 |
| Committer | Enable pg_ctl to give up admin privileges when starting the server under Windows (if newer than NT4, else works same as before). a25cd810 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 10, 2006 |
| CommitterBackported | Check that SID is enabled while checking for Windows admin privileges. Magnus eb6d1270 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Feb 10, 2006 |
| CommitterBackported | Change search for default operator classes so that it examines all opclasses regardless of the current schema search path. Since CREATE OPERATOR CLASS only allows one default opclass per datatype regardless of schemas, this should have minimal impact, and it fixes problems with failure to find a desired opclass while restoring dump files. Per discussion at http://archives.postgresql.org/pgsql-hackers/2006-02/msg00284.php. Remove now-redundant-or-unused code in typcache.c and namespace.c, and backpatch as far as 8.0. 3ac1ac58 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Feb 10, 2006 |
| Committer | Clean up some signedness warnings. b35fdaaa | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 10, 2006 |
| Committer | Fix fallout from psql line-wrapping patch. b2be41a7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 10, 2006 |
| CommitterBackported | Provide the libpq error message when PQputline or PQendcopy fails. ff2cc83f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Feb 09, 2006 |
| Committer | C++ comments are verboten. Per gripe from Kris Jurka. 14ebeee1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 09, 2006 |
| CommitterBackported | Reject out-of-range dates in date_in(). 7ae2ccbc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Feb 09, 2006 |
| Committer | Fix broken non-YYDEBUG case. 3cb312d8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 09, 2006 |
| Committer | Remove ancient hack to work around a peculiarity of libcurses on HPUX. Since we now use libtermcap in preference to libcurses, no need for hack anymore. 115e5dd5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 07, 2006 |
| Committer | Improve the tests to see if ScalarArrayOpExpr is strict. Original coding would basically punt in all cases for 'foo <> ALL (array)', which resulted in a performance regression for NOT IN compared to what we were doing in 8.1 and before. Per report from Pavel Stehule. 72153c05 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 06, 2006 |
| CommitterBackported | Fix pg_restore to properly discard COPY data when trying to continue after an error in a COPY statement. Formerly it thought the COPY data was SQL commands, and got quite confused. 8e4057cc | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Feb 05, 2006 |
| Committer | Improve my initial, rather hacky implementation of joins to append relations: fix the executor so that we can have an Append plan on the inside of a nestloop and still pass down outer index keys to index scans within the Append, then generate such plans as if they were regular inner indexscans. This avoids the need to evaluate the outer relation multiple times. 336a6491 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 05, 2006 |
| Committer | Fix constraint exclusion to work in inherited UPDATE/DELETE queries ... in fact, it will be applied now in any query whatsoever. I'm still a bit concerned about the cycles that might be expended in failed proof attempts, but given that CE is turned off by default, it's the user's choice whether to expend those cycles or not. (Possibly we should change the simple bool constraint_exclusion parameter to something more fine-grained?) 38931274 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 04, 2006 |
| Committer | Fix broken markup. 48d9ad37 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 04, 2006 |
| Committer | Teach planner to convert simple UNION ALL subqueries into append relations, thereby sharing code with the inheritance case. This puts the UNION-ALL-view approach to partitioned tables on par with inheritance, so far as constraint exclusion is concerned: it works either way. (Still need to update the docs to say so.) The definition of "simple UNION ALL" is a little simpler than I would like --- basically the union arms can only be SELECT * FROM foo --- but it's good enough for partitioned-table cases. 8b109ebf | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Feb 03, 2006 |
| CommitterBackported | Allow %TYPE to be used with SETOF, per gripe from Murat Tasan. 6851baed | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 31, 2006 |
| Committer | Restructure planner's handling of inheritance. Rather than processing inheritance trees on-the-fly, which pretty well constrained us to considering only one way of planning inheritance, expand inheritance sets during the planner prep phase, and build a side data structure that can be consulted later to find which RTEs are members of which inheritance sets. As proof of concept, use the data structure to plan joins against inheritance sets more efficiently: we can now use indexes on the set members in inner-indexscan joins. (The generated plans could be improved further, but it'll take some executor changes.) This data structure will also support handling UNION ALL subqueries in the same way as inheritance sets, but that aspect of it isn't finished yet. 8a1468af | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 31, 2006 |
| CommitterBackported | Fix ALTER COLUMN TYPE bug: it sometimes tried to drop UNIQUE or PRIMARY KEY constraints before FOREIGN KEY constraints that depended on them. Originally reported by Neil Conway on 29-Jun-2005. Patch by Nakano Yoshihisa. 0dd0e289 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 30, 2006 |
| CommitterBackported | When building a bitmap scan, must copy the bitmapqualorig expression tree to avoid sharing substructure with the lower-level indexquals. This is currently only an issue if there are SubPlans in the indexquals, which is uncommon but not impossible --- see bug #2218 reported by Nicholas Vinen. We use the same kluge for indexqual vs indexqualorig in the index scans themselves ... would be nice to clean this up someday. 3276e911 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 29, 2006 |
| Committer | Fix Assert that's no longer correct now that RowCompareExpr is indexable. 3edec383 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 29, 2006 |
| CommitterBackported | Fix code that checks to see if an index can be considered to match the query's requested sort order. It was assuming that build_index_pathkeys always generates a pathkey per index column, which was not true if implied equality deduction had determined that two index columns were effectively equated to each other. Simplest fix seems to be to install an option that causes build_index_pathkeys to support this behavior as well as the original one. Per report from Brian Hirt. a1b7e70c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 29, 2006 |
| Committer | Tweak initdb to reduce verbosity of progress messages, by printing just one 'creating subdirectories' message instead of one per subdirectory. The original decision to print something for each subdirectory was made when there were only one or two of 'em; we have way too many now. Per discussion. cab99ec3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 27, 2006 |
| Committer | Suppress signed-vs-unsigned-char warning. 75c47471 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 26, 2006 |
| CommitterBackported | Fix display of whole-row Var appearing at the top level of a SELECT list. While we normally prefer the notation "foo.*" for a whole-row Var, that does not work at SELECT top level, because in that context the parser will assume that what is wanted is to expand the "*" into a list of separate target columns, yielding behavior different from a whole-row Var. We have to emit just "foo" instead in that context. Per report from Sokolov Yura. ec057a43 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 26, 2006 |
| Committer | Update btree_gist for CIDR/INET changes --- there's really no need to have a separate set of CIDR code here, either. 97ec9501 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 26, 2006 |
| Committer | Clean up the INET-vs-CIDR situation. Get rid of the internal is_cidr flag and rely exclusively on the SQL type system to tell the difference between the types. Prevent creation of invalid CIDR values via casting from INET or set_masklen() --- both of these operations now silently zero any bits to the right of the netmask. Remove duplicate CIDR comparison operators, letting the type rely on the INET operators instead. 8d8bf127 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 26, 2006 |
| Committer | Remove the no-longer-useful HashItem/HashItemData level of structure. Same motivation as for BTItem. 5997386a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 25, 2006 |
| Committer | Remove the no-longer-useful BTItem/BTItemData level of structure, and just refer to btree index entries as plain IndexTuples, which is what they have been for a very long time. This is mostly just an exercise in removing extraneous notation, but it does save a palloc/pfree cycle per index insertion. c389760c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 25, 2006 |
| CommitterBackported | Remove unnecessary PQconsumeInput call from PQputCopyData; it's redundant because pqSendSome will absorb input data anytime it'd be forced to block. Avoiding a kernel call per PQputCopyData call helps COPY speed materially. 9b012311 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 25, 2006 |
| Committer | Allow row comparisons to be used as indexscan qualifications. This completes the project to upgrade our handling of row comparisons. 3a0a16cb | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 25, 2006 |
| CommitterBackported | Fix unportable usage of socklen_t: should use ACCEPT_TYPE_ARG3 macro provided by configure, instead. Per bug #2205. 7a9d197f | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 24, 2006 |
| Committer | Instead of using a numberOfRequiredKeys count to distinguish required and non-required keys in a btree index scan, mark the required scankeys with private flag bits SK_BT_REQFWD and/or SK_BT_REQBKWD. This seems at least marginally clearer to me, and it eliminates a wired-into-the- data-structure assumption that required keys are consecutive. Even though that assumption will remain true for the foreseeable future, having it in there makes the code seem more complex than necessary. 7ccaf13a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 23, 2006 |
| Committer | Improve wording of descriptions of SIGHUP GUC parameters, as per my suggestion a couple days ago. Fix some cases in which the documentation neglected to mention any restriction on when a parameter can be set. Try to be consistent about calling parameters parameters; use the term option only for command-line switches. 726b42ab | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 23, 2006 |
| Committer | Improve note about not using the target table name in the SET clause. It's not related to whether an alias is used or not. 16c5a471 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 22, 2006 |
| Committer | Fix alias-for-target-table-of-UPDATE-or-DELETE patch so that alias can be any ColId other than 'SET', rather than only IDENT as originally. Per discussion. 2647ad65 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 22, 2006 |
| Committer | Marginal improvements in the wording of the autovacuum documentation: be consistent about whether it's called a daemon or a subprocess, and don't describe the autovacuum setting in exactly the same way as the stats_start_collector setting, because that leaves people thinking (if they aren't paying close attention) that autovacuum can't be changed on the fly. b42f3073 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 21, 2006 |
| Committer | Fix broken markup. 27959dd7 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 21, 2006 |
| CommitterBackported | Repair longstanding bug in slru/clog logic: it is possible for two backends to try to create a log segment file concurrently, but the code erroneously specified O_EXCL to open(), resulting in a needless failure. Before 7.4, it was even a PANIC condition :-(. Correct code is actually simpler than what we had, because we can just say O_CREAT to start with and not need a second open() call. I believe this accounts for several recent reports of hard-to-reproduce "could not create file ...: File exists" errors in both pg_clog and pg_subtrans. c89a0dd3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Jan 21, 2006 |
| CommitterBackported | Replace bitwise looping with bytewise looping in hemdistsign and sizebitvec of tsearch2, as well as identical code in several other contrib modules. This provided about a 20X speedup in building a large tsearch2 index ... didn't try to measure its effects for other operations. Thanks to Stephan Vollmer for providing a test case. 33feb55c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 20, 2006 |
| CommitterBackported | Fix thinko in autovacuum's test to skip temp tables: want to skip any temp table not only our own process' tables. It's not real important since vacuum.c will skip temp tables anyway, but might as well make the code do what it claims to do. 413d492d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 20, 2006 |
| CommitterBackported | Add some test scaffolding to allow cache-flush stress testing (and I do mean stress ... system is orders of magnitude slower with this enabled). efbe674e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 19, 2006 |
| CommitterBackported | Avoid crashing if relcache flush occurs while trying to load data into an index's support-function cache (in index_getprocinfo). Since none of that data can change for an index that's in active use, it seems sufficient to treat all open indexes the same way we were treating "nailed" system indexes --- that is, just re-read the pg_class row and leave the rest of the relcache entry strictly alone. The pg_class re-read might not be strictly necessary either, but since the reltablespace and relfilenode can change in normal operation it seems safest to do it. (We don't support changing any of the other info about an index at all, at the moment.) ed69cf5d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 19, 2006 |
| CommitterBackported | It turns out that TablespaceCreateDbspace fails badly if a relcache flush occurs when it tries to heap_open pg_tablespace. When control returns to smgrcreate, that routine will be holding a dangling pointer to a closed SMgrRelation, resulting in mayhem. This is of course a consequence of the violation of proper module layering inherent in having smgr.c call a tablespace command routine, but the simplest fix seems to be to change the locking mechanism. There's no real need for TablespaceCreateDbspace to touch pg_tablespace at all --- it's only opening it as a way of locking against a parallel DROP TABLESPACE command. A much better answer is to create a special-purpose LWLock to interlock these two operations. This drops TablespaceCreateDbspace quite a few layers down the food chain and makes it something reasonably safe for smgr to call. 4513d9de | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 19, 2006 |
| CommitterBackported | Fix a tiny memory leak (one List header) in RelationCacheInvalidate(). This is utterly insignificant in normal operation, but it becomes a problem during cache inval stress testing. The original coding in fact had no leak --- the 8.0 List rewrite created the issue. I wonder whether list_concat should pfree the discarded header? b0be247e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 19, 2006 |
| CommitterBackported | Modify pgstats code to reduce performance penalties from oversized stats data files: avoid creating stats hashtable entries for tables that aren't being touched except by vacuum/analyze, ensure that entries for dropped tables are removed promptly, and tweak the data layout to avoid storing useless struct padding. Also improve the performance of pgstat_vacuum_tabstat(), and make sure that autovacuum invokes it exactly once per autovac cycle rather than multiple times or not at all. This should cure recent complaints about 8.1 showing much higher stats I/O volume than was seen in 8.0. It'd still be a good idea to revisit the design with an eye to not re-writing the entire stats dataset every half second ... but that would be too much to backpatch, I fear. d5db3abf | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 18, 2006 |
| CommitterBackported | Fix fsync code to test whether F_FULLFSYNC is available, instead of assuming it always is on Darwin. Per report from Neil Brandt. 558bc258 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 17, 2006 |
| CommitterBackported | Repair problems with the result of lookup_rowtype_tupdesc() possibly being discarded by cache flush while still in use. This is a minimal patch that just copies the tupdesc anywhere it could be needed across a flush. Applied to back branches only; Neil Conway is working on a better long-term solution for HEAD. 7b3d9367 | REL8_1_STABLE8.1.3REL8_0_STABLE8.0.7 | No linked thread | Jan 17, 2006 |
| Committer | Improve comments about btree's use of ScanKey data structures: there are two basically different kinds of scankeys, and we ought to try harder to indicate which is used in each place in the code. I've chosen the names "search scankey" and "insertion scankey", though you could make about as good an argument for "operator scankey" and "comparison function scankey". 73e35660 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 17, 2006 |
| Committer | Some minor code cleanup, falling out from the removal of rtree. SK_NEGATE isn't being used anywhere anymore, and there seems no point in a generic index_keytest() routine when two out of three remaining access methods aren't using it. Also, add a comment documenting a convention for letting access methods define private flag bits in ScanKey sk_flags. There are no such flags at the moment but I'm thinking about changing btree's handling of "required keys" to use flag bits in the keys rather than a count of required key positions. Also, if some AM did still want SK_NEGATE then it would be reasonable to treat it as a private flag bit. f7ea9312 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 14, 2006 |
| Committer | Add selectivity-calculation code for RowCompareExpr nodes. Simplistic, but a lot better than nothing at all ... 34f8ee97 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 14, 2006 |
| Committer | Remove logic in XactLockTableWait() that attempted to mark a crashed transaction as aborted. Since we only call XactLockTableWait on XIDs that we believe to be currently running, the odds of this code ever actually firing are minimal. It's certainly unnecessary, since a transaction that's not either running or committed will be presumed aborted anyway. What's more, it's not hard to imagine scenarios where this could result in corrupting pg_clog: for instance, if a bogus XID somehow got passed to XactLockTableWait. I think the code probably dates from the ancient era when we didn't have TransactionIdIsInProgress; back then it may have been necessary, but now I think it's a waste of cycles and potentially dangerous. Per discussion with Qingqing Zhou and Karsten Hilbert. 39fc1fb0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 13, 2006 |
| Committer | Document that CREATE OPERATOR CLASS amounts to granting public execute permissions on the functions and operators contained in the opclass. Since we already require superuser privilege to create an operator class, there's no expansion-of-privilege hazard here, but if someone were to get the idea of building an opclass containing functions that need security restrictions, we'd better warn them off. Also, change the permission checks from have-execute-privilege to have-ownership, and then comment them all out since they're dead code anyway under the superuser restriction. 7d6d02b6 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 13, 2006 |
| Committer | Require the issuer of CREATE TYPE to own the functions mentioned in the type definition. Because use of a type's I/O conversion functions isn't access-checked, CREATE TYPE amounts to granting public execute permissions on the functions, and so allowing it to anybody means that someone could theoretically gain access to a function he's not supposed to be able to execute. The parameter-type restrictions already enforced by CREATE TYPE make it fairly unlikely that this oversight is meaningful in practice, but still it seems like a good idea to plug the hole going forward. Also, document the implicit grant just in case anybody gets the idea of building I/O functions that might need security restrictions. 1564e92c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 13, 2006 |
| CommitterBackported | Repair "Halloween problem" in EvalPlanQual: a tuple that's been inserted by our own command (or more generally, xmin = our xact and cmin >= current command ID) should not be seen as good. Else we may try to update rows we already updated. This error was inserted last August while fixing the even bigger problem that the old coding wouldn't see *any* tuples inserted by our own transaction as good. Per report from Euler Taveira de Oliveira. 25b9b1b0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Jan 12, 2006 |
| CommitterBackported | Use a more bulletproof test for whether finite() and isinf() are present. It seems that recent gcc versions can optimize away calls to these functions even when the functions do not exist on the platform, resulting in a bogus positive result. Avoid this by using a non-constant argument and ensuring that the function result is not simply discarded. Per report from François Laupretre. db0558c1 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Jan 12, 2006 |
| CommitterBackported | Remove extraneous backslash from 'fixseq.sql' example --- mea culpa certainly. Per report from George Woodring. 9484e14c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 12, 2006 |
| Committer | Update comment about outer joins in description of geqo_threshold. 445144b8 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 11, 2006 |
| Committer | Create a standard function pg_sleep() to sleep for a specified amount of time. Replace the former ad-hoc implementation used in the regression tests. Joachim Wieland 782eefc5 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 11, 2006 |
| CommitterBackported | Improve error messages for missing-FROM-entry cases, as per recent discussion. 399437ac | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 10, 2006 |
| Committer | Fix pg_tzset() to ensure that 'lclmem' (the static variable holding the localtime timezone data) is not overwritten until we know the data is good. tzload() is capable of failing after having begun modifying the struct it's pointed at, and in such cases the static data was left in a corrupt state. Bug does not exist pre-8.0 (since we didn't have this code then) nor post-8.0 (since we already changed the code to tzload into local variables initially). Per report from Nick Martens. 2946ccf3 | REL8_0_STABLE8.0.7 | No linked thread | Jan 10, 2006 |
| Committer | Improve patternsel() by applying the operator itself to each value listed in the column's most-common-values statistics entry. This gives us an exact selectivity result for the portion of the column population represented by the MCV list, which can be a big leg up in accuracy if that's a large fraction of the population. The heuristics involving pattern contents and prefix are applied only to the part of the population not included in the MCV list. ce8fd39e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 10, 2006 |
| CommitterBackported | Fix pg_dump to add the required OPERATOR() decoration to schema-qualified operator names. This is needed when dumping operator definitions that have COMMUTATOR (or similar) links to operators in other schemas. Apparently Daniel Whitter is the first person ever to try this :-( e4a6bd22 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Jan 09, 2006 |
| Committer | Fix the assert_enabled issue properly. This eliminates the former ABI difference between USE_ASSERT_CHECKING and not: the assert_enabled variable is always there. 2645cb54 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 08, 2006 |
| Committer | Recent patch broke guc.c for non-USE_ASSERT_CHECKING case. Per Stefan Kaltenbrunner. cbf39930 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 08, 2006 |
| Committer | Avoid leaking memory while reading toasted entries from pg_rewrite, and nail a couple more system indexes into cache. This doesn't make any difference in normal system operation, but when forcing constant cache resets it's difficult to get through the rules regression test without these changes. edfbd074 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 08, 2006 |
| CommitterBackported | Add RelationOpenSmgr() calls to ensure rd_smgr is valid when we try to use it. While it normally has been opened earlier during btree index build, testing shows that it's possible for the link to be closed again if an sinval reset occurs while the index is being built. afa8f197 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 07, 2006 |
| Committer | Add comment explaining why RelationOpenSmgr() call is not needed. e58a9447 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 07, 2006 |
| CommitterBackported | During CatCacheRemoveCList, we must now remove any members that are dead and have become unreferenced. Before 8.1, such members were left for AtEOXact_CatCache() to clean up, but now AtEOXact_CatCache isn't supposed to have anything to do. In an assert-enabled build this bug leads to an assertion failure at transaction end, but in a non-assert build the dead member is effectively just a small memory leak. Per report from Jeremy Drake. 7eb54281 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 07, 2006 |
| CommitterBackported | Fix failure to apply domain constraints to a NULL constant that's added to an INSERT target list during rule rewriting. Per report from John Supplee. 0a8510e0 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Jan 06, 2006 |
| CommitterBackported | Release-note updates and copy editing. 615d99fe | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Jan 06, 2006 |
| CommitterBackported | Fix Windows-only postmaster code to reject a connection request and continue, rather than elog(FATAL), when there is no more room in ShmemBackendArray. This is a security issue since too many connection requests arriving close together could cause the postmaster to shut down, resulting in denial of service. Reported by Yoshiyuki Asaba, fixed by Magnus Hagander. a7812eb4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 06, 2006 |
| CommitterBackported | Generate back-branch configure scripts with the appropriate version of autoconf. 24011222 | REL8_0_STABLE8.0.6REL7_4_STABLE7.4.11REL7_3_STABLE7.3.13 | No linked thread | Jan 06, 2006 |
| Committer | Fix broken markup. bf7faa7c | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 06, 2006 |
| CommitterBackported | Convert Assert checking for empty page into a regular test and elog. The consequences of overwriting a non-empty page are bad enough that we should not omit this test in production builds. 2d0475e4 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 06, 2006 |
| CommitterBackported | Fix ReadBuffer() to correctly handle the case where it's trying to extend the relation but it finds a pre-existing valid buffer. The buffer does not correspond to any page known to the kernel, so we *must* do smgrextend to ensure that the space becomes allocated. The 7.x branches all do this correctly, but the corner case got lost somewhere during 8.0 bufmgr rewrites. (My fault no doubt :-( ... I think I assumed that such a buffer must be not-BM_VALID, which is not so.) 304160c3 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 06, 2006 |
| CommitterBackported | Arrange to set the LC_XXX environment variables to match our locale setup. Back-patch of previous fix in HEAD for plperl-vs-locale issue. e9bb12d5 | REL8_1_STABLE8.1.2REL8_0_STABLE8.0.6REL7_4_STABLE7.4.11REL7_3_STABLE7.3.13 | No linked thread | Jan 05, 2006 |
| CommitterBackported | Add port support for unsetenv() in back branches. Needed for locale environment fix. 37cdf43e | REL7_4_STABLE7.4.11REL7_3_STABLE7.3.13 | No linked thread | Jan 05, 2006 |
| Committer | Rearrange backend startup sequence so that ShmemIndexLock can become an LWLock instead of a spinlock. This hardly matters on Unix machines but should improve startup performance on Windows (or any port using EXEC_BACKEND). Per previous discussion. 349f40b2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 04, 2006 |
| CommitterBackported | Fix another case in which autovacuum would fail while analyzing expressional indexes. Per report from Brian Hirt. e0078ea2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 04, 2006 |
| CommitterBackported | There is a signedness bug in Openwall gen_salt code that pgcrypto uses. This makes the salt space for md5 and xdes algorithms a lot smaller than it should be. 507e07e2 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+22 more | No linked thread | Jan 03, 2006 |
| CommitterBackported | Fix incorrect treatment of RL_PROMPT_START_IGNORE/RL_PROMPT_END_IGNORE, per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=343616 via Martin Pitt. 71ad8e20 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 03, 2006 |
| CommitterBackported | Add checks to verify that a plpgsql function returning a rowtype is actually returning the rowtype it's supposed to return. Per reports from David Niblett and Michael Fuhr. 41ec930d | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+20 more | No linked thread | Jan 03, 2006 |
| Committer | Don't assume that LC_MESSAGES is always available on WIN32. Per Magnus. fd924b29 | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+18 more | No linked thread | Jan 02, 2006 |
| CommitterBackported | Reset flex state in a way that works for both flex 2.5.4 and 2.5.31. 499f4d5e | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 02, 2006 |
| CommitterBackported | Rewrite ProcessConfigFile() to avoid misbehavior at EOF, as per report from Andrus Moor. The former state-machine-style coding wasn't actually doing much except obscuring the control flow, and it didn't extend readily to fix this case, so I just took it out. Also, add a YY_FLUSH_BUFFER call to ensure the lexer is reset correctly if the previous scan failed partway through the file. fc6da31a | master8.2beta1REL_19_STABLE8.2beta1REL_18_STABLE8.2beta1REL_17_STABLE8.2beta1REL_16_STABLE8.2beta1REL_15_STABLE8.2beta1REL_14_STABLE8.2beta1REL_13_STABLE8.2beta1+19 more | No linked thread | Jan 01, 2006 |