summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-09-08Opps, can't forget the new file. This is part of the last commit to applyBarry Lind
the redhat patch for SQLState support. Added Files: PSQLState.java
2003-09-08This set of changes applies a patch from KHO at redhat to add some SQLStateBarry Lind
support to the jdbc driver. That patch needed some work: it assumed the sqlcode in a server message was fixed in its position, the patch lost the ability to pass exceptions, and the patch missed a couple of places where server errors where being received. In addition to fixing the above, I also added full support for the V3 protocol error message syntax, I reversed the order of arguments in the PSQLException constructor to more closely follow the constructors for SQLException, I changed the new constructors that take PSQLState to take Object for additional parameters as the old ones did. Still todo are to add SQLState values to all existing exceptions thrown in the driver and add support for parsing the V3 protocol format for notices. Modified Files: jdbc/build.xml jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/errors.properties jdbc/org/postgresql/core/Encoding.java jdbc/org/postgresql/core/PGStream.java jdbc/org/postgresql/core/QueryExecutor.java jdbc/org/postgresql/fastpath/Fastpath.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java jdbc/org/postgresql/util/MessageTranslator.java jdbc/org/postgresql/util/PSQLException.java
2003-09-08Avoid using s_addr as a local variable name, to work around brokenTom Lane
system headers on Unixware.
2003-09-07Remove geqo_random_seed parameter. Having geqo reset the global random()Tom Lane
sequence every time it's called is bogus --- it interferes with user control over the seed, and actually decreases randomness overall (because a seed based on time(NULL) is pretty predictable). If you really want a reproducible result from geqo, do 'set seed = 0' before planning a query.
2003-09-07Remove check on source address of a statistics packet. Check was brokenTom Lane
by recent IPv6 changes, and since it's redundant with a kernel-level check anyway, it seems not worth trying to fix it. Per recent discussions.
2003-09-07Changes for MinGW/WIN32:Bruce Momjian
o allow configure to see include/port/win32 include files o add matching Win32 accept() prototype o allow pg_id to compile with native Win32 API o fix invalide mbvalidate() function calls (existing bug) o allow /scripts to compile with native Win32 API o add win32.c to Win32 compiles (already in *.mak files)
2003-09-07Make the default pg_hba.conf include an entry for ::1 only if configureTom Lane
set HAVE_IPV6. Per recent discussions.
2003-09-07load_file() has to remove pre-existing shlibs that match the new fileTom Lane
on either name or inode; otherwise load_external_function() won't do anything. At least on Linux, it appears that recompiling a shlib leads to a new file with a different inode, so the old code failed to detect a match.
2003-09-06Make all valid uses of the COLLATE clause yield the same result: a syntaxPeter Eisentraut
error. There is no point in providing some kind of forward compatibility now, because no one can tell what a future implementation will look like.
2003-09-06Rename variables for clarity.Bruce Momjian
2003-09-05Second try at IPv4-to-v6 mapping code; avoid assuming that the structTom Lane
returned by getaddrinfo_all will have enough room for an IPv6 address.
2003-09-05Allow IPv4-format entries in pg_hba.conf to match IPv6 connectionsTom Lane
that have IPv4-embedded-in-IPv6 addresses. Per idea of Andreas Pflug.
2003-09-05ifdef out pqGetpwuid() because Win32 doesn't have struct passwd.Bruce Momjian
Needed for libpq builds, not just for native Win32 port, and probably for cygwin too.
2003-09-05This fixes three minor typos in hba.c.Bruce Momjian
-- Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
2003-09-05Clean up WIN32_CONSOLE code.Bruce Momjian
2003-09-05Enable Win32 to compile libpq again, and enable SSL compiles on thatBruce Momjian
platform. Andreas Pflug
2003-09-05Improve prototype casting for thread calls.Bruce Momjian
2003-09-04Reimplement hash index locking algorithms, per my recent proposal toTom Lane
pghackers. This fixes the problem recently reported by Markus KrÌutner (hash bucket split corrupts the state of scans being done concurrently), and I believe it also fixes all the known problems with deadlocks in hash index operations. Hash indexes are still not really ready for prime time (since they aren't WAL-logged), but this is a step forward.
2003-09-04Avoid consuming unreasonable amounts of memory when GRANT has manyTom Lane
grantees.
2003-09-04Looks like plperl has same bug as pltcl.Tom Lane
2003-09-04Fix some problems with dropped columns in pltcl functions.Tom Lane
2003-09-04Allow non-super users to set log_duration to true, then false, when theBruce Momjian
administrator has not turned it on, and fix other PGC_USERLIMIT variables.
2003-09-04Re-upper case CHECKPOINT_SEGMENTS.Bruce Momjian
2003-09-04Lowercase CHECKPOINT_SEGMENTS.Bruce Momjian
2003-09-03Tighten casting of function call pointers for threads.Bruce Momjian
2003-09-03Pass session_authorization to the client and make psql update its promptPeter Eisentraut
accordingly.
2003-09-03Mark unixware as verified.Bruce Momjian
2003-09-03Add Unixware as verified.Bruce Momjian
2003-09-03Mark BSD/OS as verified not needing reentrant function names.Bruce Momjian
2003-09-03Add reporting of specificy threading failure functions.Bruce Momjian
2003-09-03Add test for thread-safeness of libc functions.Bruce Momjian
2003-09-03Mark Unixware as not requiring *_r functions.Bruce Momjian
2003-09-03Work around ENOTEMPTY being an alias for EEXIST on some platforms.Tom Lane
2003-09-03Repair problems with to_char() overrunning its input string.Tom Lane
From Karel Zak.
2003-09-02In _bt_check_unique() loop, don't bother applying _bt_isequal() toTom Lane
killed items; just skip to the next item immediately. Only check for key equality when we reach a non-killed item or the end of the index page. This saves key comparisons when there are lots of killed items, as for example in a heavily-updated table that's not been vacuumed lately. Seems to be a win for pgbench anyway.
2003-09-02Remove outdated CLI things.Peter Eisentraut
2003-09-02Cause standalone backend (including bootstrap case) to read the GUCTom Lane
config file if it exists. This was already discussed as being a good idea, and now seems the cleanest way to deal with initdb-time failures on machines with small SHMMAX. (The submitted patches instead modified initdb.sh to pass the correct sizing parameters, but that would still leave standalone backends prone to failure later. An admin who needs to use a standalone backend has enough trouble already, he shouldn't have to manually configure its shmem settings...)
2003-09-02Several fixes for hash indexes that involve changing the on-disk indexTom Lane
layout; therefore, this change forces REINDEX of hash indexes (though not a full initdb). Widen hashm_ntuples to double so that hash space management doesn't get confused by more than 4G entries; enlarge the allowed number of free-space-bitmap pages; replace the useless bshift field with a useful bmshift field; eliminate 4 bytes of wasted space in the per-page special area.
2003-09-02Fix a couple typos, add some more comments.Tom Lane
2003-09-02Rewrite hashbulkdelete() to make it amenable to new bucket lockingTom Lane
scheme. A pleasant side effect is that it is *much* faster when deleting a large fraction of the indexed tuples, because of elimination of redundant hash_step activity induced by hash_adjscans. Various other continuing code cleanup.
2003-09-01Do not pass server_encoding to the client.Peter Eisentraut
libpq, talking to an old server, should assume SQL_ASCII as the default client encoding, because that is what the server will actually use (not the server encoding).
2003-09-01Clean up after pygresql removal: adjust/remove documentation and removePeter Eisentraut
unneeded configure work.
2003-09-01Preliminary cleanup for hash index code (doesn't attack the locking problemTom Lane
yet). Fix a couple of bugs that would only appear if multiple bitmap pages are used, including a buffer reference leak and incorrect computation of bit indexes. Get rid of 'overflow address' concept, which accomplished nothing except obfuscating the code and creating a risk of failure due to limited range of offset field. Rename some misleadingly-named fields and routines, and improve documentation.
2003-09-01Add some internals documentation for hash indexes, including anTom Lane
explanation of the remarkably confusing page addressing scheme. The file also includes my planned-but-not-yet-implemented revision of the hash index locking scheme.
2003-09-01Fixed two bugs in pgtypes library.Michael Meskes
2003-09-01Rename DoIt to changeVar, for clarity.Bruce Momjian
2003-08-31Translation updatePeter Eisentraut
2003-08-30Guard against pgindent changing =- to = -.Bruce Momjian
2003-08-30Fix unixware template --- had spaces around equals.Bruce Momjian
2003-08-28pg_dump and pg_restore -r had managed to diverge on the ordering ofTom Lane
different object types. Fix, and centralize logic to try to prevent the same mistake in future.