Skip to content
Snippets Groups Projects
  1. Oct 12, 2000
  2. Oct 09, 2000
  3. Oct 08, 2000
    • Bruce Momjian's avatar
      Okay, I have some new code in place that hopefully should work better. I · 5383b5d8
      Bruce Momjian authored
      couldn't produce a full patch using cvs diff -c this time since I have
      created new files and anonymous cvs usage doesn't allow you to
      adds. I'm supplying the modified src/interfaces/jdbc as a tarball at :
      http://www.candleweb.no/~gunnar/projects/pgsql/postgres-jdbc-2000-10-05.tgz
      
      The new files that should be added are :
      
      ? org/postgresql/PGStatement.java
      ? org/postgresql/ObjectPool.java
      ? org/postgresql/ObjectPoolFactory.java
      
      There is now a global static pool of free byte arrays and used byte arrays
      connected to a statement object. This is the role of the new PGStatement
      class. Access to the global free array is synchronized, while we rely on
      the PG_Stream synchronization for the used array.
      
      My measurements show that the perfomance boost on this code is not quite as
      big as my last shot, but it is still an improvement. Maybe some of the
      difference is due to the new synchronization on the global array. I think I
      will look into choosing between on a connection level and global level.
      
      I have also started experimented with improving the performance of the
      various conversions. The problem here is ofcourse related handle the
      various encodings. One thing I found to speed up ResultSet.getInt() a lot
      was to do custom conversion on the byte array into int instead of going
      through the getString() to do the conversion. But I'm unsure if this is
      portable, can we assume that a digit never can be represented by more than
      one byte ? It works fine in my iso-latin-8859-1 environment, but what about
      other environments ? Maybe we could provide different ResultSet
      implementations depending on the encoding used or delegate some methods of
      the result set to an "converter class".
      
      Check the org/postgresql/jdbc2/FastResultSet.java in the tarball above to
      see the modified getInt() method.
      
      Regards,
      
              Gunnar
      5383b5d8
  4. Sep 12, 2000
  5. Jun 06, 2000
  6. Apr 26, 2000
  7. Sep 15, 1999
  8. Sep 14, 1999
  9. May 19, 1999
  10. May 18, 1999
  11. Apr 11, 1999
  12. Jan 17, 1999
    • Bruce Momjian's avatar
      As the email posted to the announce and interfaces list, attached is a tar · 298682d9
      Bruce Momjian authored
      file containing the latest version of the JDBC driver, allowing it to be
      compiled and used under JDK 1.2 and later.
      
      NB: None (well almost none) of the new methods actually do anything. This
      release only handles getting it to compile and run. Now this is done, I'll
      start working on implementing the new stuff.
      
      Now this tar file replaces everything under src/interfaces/jdbc. I had to
      do it this way, rather than diffs, because most of the classes under the
      postgresql subdirectory have moved to a new directory under that one, to
      enable the support of the two JDBC standards.
      
      Here's a list of files in the tar file. Any file not listed here (in the
      postgresql directory) will have to be deleted, otherwise it could cause
      the driver to fail:
      
      Peter Mount
      298682d9
  13. Oct 08, 1998
  14. Sep 03, 1998
  15. Jun 03, 1998
    • Marc G. Fournier's avatar
      · 85f91d0e
      Marc G. Fournier authored
      From: Peter T Mount <patches@maidast.demon.co.uk>
      
      Bug fixes:
      
              PreparedStatement.setObject didn't handle short's
      
              ResultSet.getDate() now handles null dates (returns null rather
              than a NullPointerException)
      
              ResultSetMetaData.getPrecision() now returns 0 for VARCHAR
      
      New features:
      
              Field now caches the typename->oid in a Hashtable to speed things
              up. It removes the need for some unnecessary queries to the
              backend.
      
              PreparedStatement.toString() now returns the sql statement that
              it will send to the backend. Before it did nothing.
      
              DatabaseMetaData.getTypeInfo() now does something.
      85f91d0e
  16. Apr 18, 1998
  17. Feb 20, 1998
  18. Feb 09, 1998
    • Marc G. Fournier's avatar
      From: Peter T Mount <patches@maidast.demon.co.uk> · 2535fcde
      Marc G. Fournier authored
      This patch fixes the following:
      
      * Fixes minor bug found in DatabaseMetaData.getTables() where it doesn't
        handle default table types.
      * It now reports an error if the client opens a database using
        properties, and either the user or password properties are missing. This
        should make the recent problem with Servlets easier to find.
      * Commented out obsolete property in Driver.getPropertyInfo()
      2535fcde
  19. Feb 02, 1998
    • Marc G. Fournier's avatar
      From: Peter T Mount <patches@maidast.demon.co.uk> · 4e9dd952
      Marc G. Fournier authored
      [This is a repost - it supercedes the previous one. It fixes the patch so
      it doesn't bread aix port, plus there's a file missing out of the
      original post because difforig doesn't pick up new files. It's now
      attached. peter]
      
      This patch brings the JDBC driver up to the current protocol spec.
      Basically, the backend now tells the driver what authentication scheme to
      use.
      
      The patch also fixes a performance problem with large objects. In the
      buffer manager, each fastpath call was sending multiple Notifications to
      the backend (sometimes more data in the form of notifications were being
      sent than blob data!).
      4e9dd952
  20. Jan 11, 1998
  21. Nov 07, 1997
  22. Oct 30, 1997
  23. Sep 20, 1997
  24. Aug 31, 1997
  25. Aug 16, 1997
Loading