summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-05-17Prevent forced blank line before comment block in pgindent.Bruce Momjian
2001-05-17Spacing cleanup.Bruce Momjian
2001-05-17Small cleanup of spacing.Bruce Momjian
2001-05-17Add HISTORY items for 7.1.2.Bruce Momjian
2001-05-17Add missing space to sample cvs call.Bruce Momjian
2001-05-17Fix pg_index statistics query to join proper relation.Bruce Momjian
2001-05-17Included is a patch that fixes a bug introduced in the lastest versionBruce Momjian
(1.22) of interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java. That change removed a line that set the variable s to the value of the stringbuffer. This fix changes the following if checks to check the length of the stringbuffer instead of s, since s no longer contains the string the if conditions are expecting. The bug manifests itself in getTimestamp() loosing the timezone information of timestamps selected from the database, thereby causing the time to be incorrect. Barry Lind
2001-05-17Cleanup of backpatch of jdbc2 improvements to jdbc1:Bruce Momjian
Here's what I came up with. The biggest difference api between JDK1.x and later versions is the support for collections. The problem was with the Vector class; in jdk1.x there is no method called add, so I changed the calls to addElement. Also no addAll, so I rewrote the method slightly to not require addAll. While reviewing this I notices some System.out.println statements that weren't commented out. So I commented them out in both versions. The upshot of all of this is that I have clean compile, but no idea if the code works ;( Dave Cramer
2001-05-17Fix 'make clean' with jdbc and ant by using filesets.Bruce Momjian
2001-05-171) Decrease the size of some buffers.Hiroshi Inoue
2) Repair broken SQLStatistics().
2001-05-17Replace poorly-coded vac_find_eq routine with call to standard bsearchTom Lane
library code. Tweak progress messages to include elapsed real time, not only CPU time.
2001-05-17Mark column as not used.Bruce Momjian
2001-05-16Add missing paren.Bruce Momjian
2001-05-16Repair race condition introduced into heap_update() in 7.1 ---Tom Lane
PageGetFreeSpace() was being called while not holding the buffer lock, which not only could yield a garbage answer, but even if it's the right answer there might be less space available after we reacquire the buffer lock. Also repair potential deadlock introduced by my recent performance improvement in RelationGetBufferForTuple(): it was possible for two heap_updates to try to lock two buffers in opposite orders. The fix creates a global rule that buffers of a single heap relation should be locked in decreasing block number order. Currently, this only applies to heap_update; VACUUM can get away with ignoring the rule since it holds exclusive lock on the whole relation anyway. However, if we try to implement a VACUUM that can run in parallel with other transactions, VACUUM will also have to obey the lock order rule.
2001-05-16Fix for HASH for index lookups in ODBC.Bruce Momjian
2001-05-16This patch fixes a bug which occurs when setObject(1,obj) is called and objBruce Momjian
is of type Object, and is null Dave Cramer
2001-05-16Add NUMERIC tests to jdbc code.Bruce Momjian
David Esposito
2001-05-16I was trying to get a very nice FREE graphical db tool called DbVisualizerBruce Momjian
(http://www.ideit.com/products/dbvis/) to work with Postgresql and I found out the following bug: if database has views then getTables() gets the null pointer exception ('order by relname' makes the listing tree in DbVisualizer a lot useful !!) This patch should propably be applied to the the jdbc1's DatabaseMetaData.java, too. Panu Outinen
2001-05-16Change the line:Bruce Momjian
return ((c == 't') || (c == 'T')); int the getBoolean function on line 184:ish to: return ((c == 't') || (c == 'T') (c == '1')); Hunter Hillegas
2001-05-16Backpatch jdbc2 fixes to jdbc1, ANT fixes, from Peter EisentrautBruce Momjian
2001-05-16Backpatch getImportedKeys to jdbc1.Bruce Momjian
2001-05-16Backpatch ORDER BY fix to jdbc1.Bruce Momjian
2001-05-16Here's an easy patch for todays snapshot to sort the result of theBruce Momjian
public ResultSet getTables(String catalog, String schemaPattern, String Jeroen van Vianen
2001-05-16jdbc2 implementation of getImportedKeys.Bruce Momjian
Ola Sundell
2001-05-16The current implementation of BlobInputStream doesBruce Momjian
not properly handle 8-bit unsigned data as it blindly casts the byte to an int, which java most helpfully promotes to a signed type. This causes problems when you can only return -1 to indicated EOF. The following patch fixes the bug and has been tested locally on image data. Chad David
2001-05-15Add missing dlfcn.h includes. Fix "" vs <>.Peter Eisentraut
2001-05-15Remove unnecessary EvalPlanQual support code --- since this plan nodeTom Lane
type never scans a relation directly, it can't be an EPQ target. Explicitly drop subplan's tuple table to ensure we have no buffer pin leaks.
2001-05-15we found a problem in GiST with massive insert/update operationsBruce Momjian
with many NULLs ( inserting of NULL into indexed field cause ERROR: MemoryContextAlloc: invalid request size) As a workaround 'vacuum analyze' could be used. This patch resolves the problem, please upply to 7.1.1 sources and current cvs tree. Oleg Bartunov
2001-05-15Fix small thinko.D'Arcy J.M. Cain
2001-05-15Fix regression for new oids.Bruce Momjian
2001-05-15Re-add pg_index.indhaskeytype.Bruce Momjian
2001-05-15Re-add pg_index.indisclustered in a minimalist way. Also fix BSDiBruce Momjian
dynamic linker change. #include must be before #ifdef test.
2001-05-15Some badly needed documentation about EvalPlanQual.Tom Lane
2001-05-15EvalPlanQual was thoroughly broken for concurrent update/delete on inheritanceTom Lane
trees (mostly my fault). Repair. Also fix long-standing bug in ExecReplace: after recomputing a concurrently updated tuple, we must recheck constraints. Make EvalPlanQual leak memory with somewhat less enthusiasm than before, although plugging leaks fully will require more changes than I care to risk in a dot-release.
2001-05-15Let's stick to the documented number of digits in CATVERSION, shall we?Tom Lane
2001-05-14Update regression for new oids, some now two smaller.Bruce Momjian
2001-05-14Remove linking hacks now that dynloader is fixed.Peter Eisentraut
2001-05-14Small include file fix for pg_variabie.hBruce Momjian
2001-05-14Update catalog version for fix.Bruce Momjian
2001-05-14Pg_varaiable removal cleanup found from regression.Bruce Momjian
2001-05-14Remove columns pg_index.haskeytype and pg_index.indisclustered. Not used.Bruce Momjian
2001-05-14Use RTLD_GLOBAL flag for dlopen-style dynamic loaders.Peter Eisentraut
2001-05-14Remove unused tables pg_variable, pg_inheritproc, pg_ipl tables. InitdbBruce Momjian
forced.
2001-05-14Current implementation of FOR UPDATE has no hope of working correctlyTom Lane
for relations on the nullable side of an OUTER JOIN. For now I think we'd better refuse such queries.
2001-05-13Cope with configure arguments that contain spaces.Peter Eisentraut
2001-05-12proisstrict must be assumed FALSE when dumping from a 7.0 database,Tom Lane
not TRUE. Otherwise we break pl call handler functions. fmgr_oldstyle will take care of making sure the semantics are the same for C functions. Clean up some slightly grotty coding in 7.0 pg_class reading, also.
2001-05-12Modify RelationGetBufferForTuple() so that we only do lseek and lockTom Lane
when we need to move to a new page; as long as we can insert the new tuple on the same page as before, we only need LockBuffer and not the expensive stuff. Also, twiddle bufmgr interfaces to avoid redundant lseeks in RelationGetBufferForTuple and BufferAlloc. Successive inserts now require one lseek per page added, rather than one per tuple with several additional ones at each page boundary as happened before. Lock contention when multiple backends are inserting in same table is also greatly reduced.
2001-05-12Add provisions for using strdup replacement in the places that stillPeter Eisentraut
needed it. from our fearless Ultrix porter, Alexander Klimov <ask@wisdom.weizmann.ac.il>
2001-05-12Add command '\pset footer' to psql to turn off default "(x rows)" footer.Peter Eisentraut
2001-05-12PL/Python should build portably now, if you can get over the fact thatPeter Eisentraut
there's no shared libpython. Test suite works as well. Also, add some documentation.