summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-11-24Our interface code for Spencer's regexp package was checking for regexpTom Lane
error conditions during regexp compile, but not during regexp execution; any sort of "can't happen" errors would be treated as no-match instead of being reported as they should be. Noticed while trying to duplicate a reported Tcl bug.
2004-11-18Back-patch fix for ALTER DATABASE failing to flush pg_database changesTom Lane
to disk right away. This is just a one-liner change rather than trying to use FlushRelationBuffers().
2004-11-17Fix off-by-one memory allocation, as reported by Rod Taylor. AlsoTom Lane
avoid repalloc'ing twice when once is sufficient.
2004-11-17Backpatch fix from HEAD:Neil Conway
Prevent a backend crash when processing CREATE TABLE commands with more than 65K columns, or when the created table has more than 65K columns due to adding inherited columns from parent relations. Fix a similar crash when processing SELECT queries with more than 65K target list entries. In all three cases we would eventually detect the error and elog, but the check was being made too late.
2004-11-16Translation updatePeter Eisentraut
2004-11-10List VALUE as a keyword.Michael Meskes
2004-11-09In PGSharedMemoryIsInUse, assume that EACCES indicates a shmem segmentTom Lane
that is of no concern to us --- it must belong to a different userid, which means it is not a Postgres shmem segment (or at least, not one that is relevant to our data directory). I plan a more extensive fix in HEAD, but this is a simple change that prevents failure-to-reboot problems for single-postmaster installations.
2004-11-08Fix unportable code in SockAddr_cidr_mask: you can't assume thatTom Lane
shifting left by full word width gives zero. Per bug report from Tyson Thomson.
2004-11-01fixed bug in REVOKE statement cat_str only has 8 argumentsDave Cramer
2004-10-30New translationsPeter Eisentraut
2004-10-29Rearrange order of pre-commit operations: must close cursors before doingTom Lane
ON COMMIT actions. Per bug report from Michael Guerin.
2004-10-27Translation updatePeter Eisentraut
2004-10-22Stamp release 7.4.6.REL7_4_6Tom Lane
2004-10-22Prevent pg_ctl from being run as root. Since it uses configuration filesTom Lane
owned by postgres, doing "pg_ctl start" as root could allow a privilege escalation attack, as pointed out by iDEFENSE. Of course the postmaster would fail, but we ought to fail a little sooner to protect sysadmins unfamiliar with Postgres. The chosen fix is to disable root use of pg_ctl in all cases, just to be confident there are no other holes.
2004-10-21Update obsolete comments about COPY vs INSERT options, per Uwe Schroeder.Tom Lane
2004-10-21Correctly cast the return value of a CallableStatement when getShortKris Jurka
is called. getByte presents a can't happen situation as no function can return a TINYINT because pg doesn't have an equivalent type. Make this throw an exception if we get to this point. Thanks to Christian Niles.
2004-10-21Back-patch make_oidjoins_check security improvement.Tom Lane
2004-10-13Repair possible failure to update hint bits back to disk, perTom Lane
http://archives.postgresql.org/pgsql-hackers/2004-10/msg00464.php. I plan a more permanent fix in HEAD, but for the back branches it seems best to just touch the places that actually have a problem.
2004-10-12Translation updatePeter Eisentraut
2004-10-05'::' is no longer interpreted as a variable in a prepare statement.Michael Meskes
2004-10-01Convert pg_stat_get_backend_idset to use the existing SRF support.Tom Lane
This seems the cleanest way of fixing its lack of a shutdown callback, which was preventing it from working correctly in a query that didn't run it to completion. Per bug report from Szima GÄbor.
2004-09-27Translation updatePeter Eisentraut
2004-09-26Repair bug that would allow libpq to think a command had succeeded whenTom Lane
it really hadn't, due to double output of previous command's response. Fix prevents recursive entry to libpq routines. Found by Jan Wieck.
2004-09-20Translation updatePeter Eisentraut
2004-09-20Translation updatePeter Eisentraut
2004-09-18Put the brackets in the right places in timestamp entries in table 8-1.Tom Lane
Spotted by Josh Purinton.
2004-09-18Fix memory leak in tokenize_file, per report from Vadim Passynkov.Tom Lane
2004-09-17Hashed LEFT JOIN would miss outer tuples with no inner match if the joinTom Lane
was large enough to be batched and the tuples fell into a batch where there were no inner tuples at all. Thanks to Xiaoyu Wang for finding a test case that exposed this long-standing bug.
2004-09-13Translation updatePeter Eisentraut
2004-09-13Protected access to variable m_preparedCount via synchronizedKris Jurka
function to prevent multiple threads using automatic cursors on the same connection from stomping over each others cursor. Originally Jan Wieck, re-reported by Jack Orenstein after accidental removal.
2004-09-13ResultSet.moveToCurrentRow was checking the cached updateability flagKris Jurka
assuming it had been set instead of correctly calling the isUpdateable() method which sets the flag if needed. This usually worked because moveToCurrentRow is only useful after a moveToInsertRow call which would set the flag, but this is not required. David Bucciarelli
2004-09-13Due to popular domand, backport fix for a typo in the SELECT referenceNeil Conway
page, per Thomas F. O'Connell.
2004-09-11Fix bogus example for bit-string XOR (already fixed in HEAD).Tom Lane
Per Grzegorz Wojdyla.
2004-09-06Back-patch fix to disallow BEGIN/COMMIT/ROLLBACK inside SQL functions.Tom Lane
Not sure why this isn't causing serious problems in some simple tests, but it definitely isn't going to do anything desirable...
2004-08-31Repair 'expected both swapped tables to have TOAST tables' bug in 7.4Tom Lane
branch. I wasn't excited about doing this when the first report came in, but now that we have two of 'em, I suppose it had better get fixed.
2004-08-28Prevent pg_ctl restart from adding -D datadir multiple times.Bruce Momjian
2004-08-27Make gistindex_keytest safe against NULL values. Same fix was alreadyTom Lane
made in passing for 8.0, but now that we have a bug report showing it's needed, we should put it into 7.4 branch.
2004-08-24Translation updatePeter Eisentraut
2004-08-18Brand 7.4.5 ... now that was our shortest-lived release ever ...REL7_4_5Tom Lane
2004-08-18Update release history for 7.4.5.Tom Lane
2004-08-17Fix bug introduced into _bt_getstackbuf() on 2003-Feb-21: the initialTom Lane
value of 'start' could be past the end of the page, if the page was split by some concurrent inserting process since we visited it. In this situation the code could look at bogus entries and possibly find a match (since after all those entries still contain what they had before the split). This would lead to 'specified item offset is too large' followed by 'PANIC: failed to add item to the page', as reported by Joe Conway for scenarios involving heavy concurrent insertion activity.
2004-08-15Stamp 7.4.4.REL7_4_4Tom Lane
2004-08-14Back-patch fix for \r\n line endings in psql's COPY support.Tom Lane
Andrew Dunstan.
2004-08-14Translation updatePeter Eisentraut
2004-08-13Translation updatePeter Eisentraut
2004-08-13New build for the 7.4.4 release.Kris Jurka
2004-08-11Avoid crashing when restoring a saved GUC session_authorization valueTom Lane
that refers to a now-deleted userid. Per gripe from Chris Ochs.
2004-08-11Decode V3 notice messages instead of leaving them in raw form.Kris Jurka
From Donald Fraser.
2004-08-11DatabaseMetaData.getSearchString escape was a \ short of workingKris Jurka
because both Java's String constructor and pg's input parser strip off backslashes.
2004-08-11Fix failure to guarantee that a checkpoint will write out pg_clog updatesTom Lane
for transaction commits that occurred just before the checkpoint. This is an EXTREMELY serious bug --- kudos to Satoshi Okada for creating a reproducible test case to prove its existence.