summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-01-06Fix markup because older releases couldn't link to the reference section.Bruce Momjian
2007-01-05Minor copy-editing for release note updates.Tom Lane
2007-01-05Stamp release 8.0.10.Bruce Momjian
2007-01-05Create release notes for 8.0.10.Bruce Momjian
2007-01-03Fix regex_fixed_prefix() to cope reasonably well with regex patterns of theTom Lane
form '^(foo)$'. Before, these could never be optimized into indexscans. The recent changes to make psql and pg_dump generate such patterns (for \d commands and -t and related switches, respectively) therefore represented a big performance hit for people with large pg_class catalogs, as seen in recent gripe from Erik Jones. While at it, be more paranoid about case-sensitivity checking in multibyte encodings, and fix some other corner cases in which a regex might be interpreted too liberally.
2006-12-26Repair bug #2839: the various ExecReScan functions need to resetTom Lane
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.
2006-12-21Fix convertion for 'PFX flag N num'Teodor Sigaev
2006-12-01Document the recently-understood hazard that a rollback can release row-levelTom Lane
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...
2006-11-28Update timezone data to tzdata2006p zic distribution. It seems WesternTom Lane
Australia decided to institute DST with one month's notice ... way to go, politicians.
2006-11-28Mark to_number() and the numeric-type variants of to_char() as stable, notTom Lane
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.
2006-11-24Fix psql's \copy command to ensure that it cycles libpq back to the idle stateTom Lane
(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. Back-patch as far as 7.4, the oldest version supporting %x.
2006-11-22Fix 1-byte buffer overrun when OID exceeds 1 billion. This probably can'tTom Lane
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.
2006-11-20When truncating a relation in-place (eg during VACUUM), do not try to unlinkTom Lane
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. Back-patch as far as 8.0. I believe the 7.x branches are not vulnerable, because they had no bgwriter, and "blind" writes by other backends would always be done via freshly-opened file references.
2006-11-19Repair problems with hash indexes that span multiple segments: the hash code'sTom Lane
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(). Backpatch as far as 7.4. The bug likely exists in 7.3 as well, but because of the magnitude of the 7.3-to-7.4 changes in hash, the later-version patch doesn't even begin to apply. Given the other known bugs in the 7.3-era hash code, it does not seem worth trying to develop a separate patch for 7.3.
2006-11-08Applied patch by Peter Harris to free auto_mem struct in ECPGconnect.Michael Meskes
2006-11-06Repair bug #2694 concerning an ARRAY[] construct whose inputs are emptyTom Lane
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.
2006-11-01Fix "failed to re-find parent key" btree VACUUM failure by tweakingTom Lane
_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.
2006-10-20Back-patch second version of AIX getaddrinfo fix.Tom Lane
2006-10-19Work around reported problem that AIX's getaddrinfo() doesn't seem to zeroTom Lane
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.
2006-10-13Fix infinite sleep and failes of send in Win32.Teodor Sigaev
1) pgwin32_waitforsinglesocket(): WaitForMultipleObjectsEx now called with finite timeout (100ms) in case of FP_WRITE and UDP socket. If timeout occurs then pgwin32_waitforsinglesocket() tries to write empty packet goes to WaitForMultipleObjectsEx again. 2) pgwin32_send(): add loop around WSASend and pgwin32_waitforsinglesocket(). The reason is: for overlapped socket, 'ok' result from pgwin32_waitforsinglesocket() isn't guarantee that socket is still free, it can become busy again and following WSASend call will fail with WSAEWOULDBLOCK error. See http://archives.postgresql.org/pgsql-hackers/2006-10/msg00561.php
2006-10-12Stamp 8.0.9.REL8_0_9Tom Lane
2006-10-12Update release notes for SQL functions vs triggers fix.Tom Lane
2006-10-12Fix mishandling of after-trigger state when a SQL function returns multipleTom Lane
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. This is a simple patch that should solve the problem fully in the back branches, but in HEAD we also need to consider the possibility of queries with RETURNING clauses. Will look into a fix for that separately.
2006-10-11A bit of copy-editing on back-branch release notes.Tom Lane
2006-10-11Repair incorrect check for coercion of unknown literal to ANYARRAY, a bugTom Lane
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. Note: as fixed in HEAD, this changes a constant in the pg_stats view, resulting in a change in the expected regression outputs. The back-branch patches have been hacked to avoid that, so that pre-existing installations won't start failing their regression tests.
2006-10-11CREATE TABLE ... LIKE ... should mark the columns it creates withTom Lane
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.
2006-10-10Fix psql \d commands to behave properly when a pattern using regex | is given.Tom Lane
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.
2006-10-09Stamp releases 7.3.16, 7.4.14, 8.0.9, and 8.1.5.Bruce Momjian
2006-10-09Update release notes for releases 7.3.16, 7.4.14, 8.0.9, and 8.1.5.Bruce Momjian
2006-10-09Fix back-branch pg_regress scripts to try the "canonical" expected file if weTom Lane
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.
2006-10-07Fix ancient oversight in psql's \d pattern processing code: when seeing twoTom Lane
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 ...
2006-10-07Fix string_to_array() to correctly handle the case where there areTom Lane
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.
2006-10-06Fix SysCacheGetAttr() to handle the case where the specified syscache has notTom Lane
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.
2006-10-01date_trunc also accepts 'quarter'. Noted by Yoshihisa Nakano.Tom Lane
2006-08-31Clean up rather sloppy fix in HEAD for the ancient bug that CREATE CONVERSIONTom Lane
didn't create a dependency from the new conversion to its schema. Back-patch to all supported releases.
2006-08-29Fix mistypingTeodor Sigaev
2006-08-18Add installcheck-parallel target to top level makefiles.Andrew Dunstan
2006-08-18Backported buffer overrun fix from HEADMichael Meskes
2006-08-18Applied the connect patch from HEADMichael Meskes
2006-08-08Fix bug introduced by last patch, thanks again to Mario Weilguni ↵Teodor Sigaev
<mweilguni@sime.com>
2006-08-07Back-port HEAD's configure fixes to select appropriate compiler switchesTom Lane
for Intel's icc and AIX's xlc.
2006-08-07fix bug about modifying value in shared buffer,Teodor Sigaev
what was a reason to corrupt index. Thank to Mario Weilguni <mweilguni@sime.com> to discover a bug.
2006-07-31Fix confusion between COPY FROM and COPY TO, per Gavin Sharry and Arul Shaji.Alvaro Herrera
2006-07-29prevent multiplexing Windows kernel event objects we listen for across ↵Andrew Dunstan
various sockets - should fix the occasional stats test regression failures we see.
2006-07-16Ensure that we retry rather than erroring out when send() or recv() returnTom Lane
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. Backpatch as far as 8.0.
2006-07-14Add dependency to fix parallel-make race condition. Alexander DupuyTom Lane
2006-07-11Fix bug corrupting query in gist consistent function.Teodor Sigaev
Thank to Mario Weilguni <mweilguni@sime.com> to discover a bug.
2006-07-10Fix ALTER TABLE to check pre-existing NOT NULL constraints when rewritingTom Lane
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.
2006-07-06Fix dbmirror for new backslash escaping:Bruce Momjian
Martin Pitt [2006-06-16 0:15 +0200]: > Upstream confirmed my reply in the last mail in [1]: the complete > escaping logic in DBMirror.pl is seriously screwew. > > [1] http://archives.postgresql.org/pgsql-bugs/2006-06/msg00065.php I finally found some time to debug this, and I think I found a better patch than the one you proposed. Mine is still hackish and is still a workaround around a proper quoting solution, but at least it repairs the parsing without introducing the \' quoting again. I consider this a band-aid patch to fix the recent security update. PostgreSQL gurus, would you consider applying this until a better solution is found for DBMirror.pl? Martin Pitt http://www.piware.de
2006-07-05Fixed remaining Coverity bugs.Michael Meskes