This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_0_316 in repository libpostgresql-jdbc-java.
commit edb379265dcf01ead31bf95bc632fa6662f20068 Author: Kris Jurka <[email protected]> Date: Sat Apr 29 13:31:28 2006 +0000 The previous commit message is completely bogus. I use the -F argument to specify a filename and I picked com.msg instead of oom.msg resulting in a random old message. This is the correct log entry. An OutOfMemoryError during fe<->be communication leaves the protocol in an unknown state. This prevents the caller from even closing the connection. Checking every allocation is a lot of work, but the most likely error location is going to be when receiving large result sets. Put in checks around receiving row data to detect memory exhaustion, keep the protocol in a known state, and report the failure back to the user. As reported by David Blasby. --- org/postgresql/core/PGStream.java | 2 +- org/postgresql/core/v2/QueryExecutorImpl.java | 2 +- org/postgresql/core/v3/QueryExecutorImpl.java | 2 +- org/postgresql/util/PSQLState.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org/postgresql/core/PGStream.java b/org/postgresql/core/PGStream.java index c1117f5..877538b 100644 --- a/org/postgresql/core/PGStream.java +++ b/org/postgresql/core/PGStream.java @@ -3,7 +3,7 @@ * Copyright (c) 2003-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/core/PGStream.java,v 1.13.2.1 2005/12/02 03:06:55 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/core/PGStream.java,v 1.13.2.2 2006/04/29 00:07:10 jurka Exp $ * *------------------------------------------------------------------------- */ diff --git a/org/postgresql/core/v2/QueryExecutorImpl.java b/org/postgresql/core/v2/QueryExecutorImpl.java index 4e004a3..33a8643 100644 --- a/org/postgresql/core/v2/QueryExecutorImpl.java +++ b/org/postgresql/core/v2/QueryExecutorImpl.java @@ -4,7 +4,7 @@ * Copyright (c) 2004, Open Cloud Limited. * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/core/v2/QueryExecutorImpl.java,v 1.10.2.3 2005/12/15 23:29:29 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/core/v2/QueryExecutorImpl.java,v 1.10.2.4 2006/04/29 00:07:10 jurka Exp $ * *------------------------------------------------------------------------- */ diff --git a/org/postgresql/core/v3/QueryExecutorImpl.java b/org/postgresql/core/v3/QueryExecutorImpl.java index dc1a42b..75ba450 100644 --- a/org/postgresql/core/v3/QueryExecutorImpl.java +++ b/org/postgresql/core/v3/QueryExecutorImpl.java @@ -4,7 +4,7 @@ * Copyright (c) 2004, Open Cloud Limited. * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/core/v3/QueryExecutorImpl.java,v 1.21.2.2 2006/04/26 20:07:51 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/core/v3/QueryExecutorImpl.java,v 1.21.2.3 2006/04/29 00:07:10 jurka Exp $ * *------------------------------------------------------------------------- */ diff --git a/org/postgresql/util/PSQLState.java b/org/postgresql/util/PSQLState.java index 2aadcea..0505695 100644 --- a/org/postgresql/util/PSQLState.java +++ b/org/postgresql/util/PSQLState.java @@ -3,7 +3,7 @@ * Copyright (c) 2003-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/util/PSQLState.java,v 1.9 2005/01/15 07:53:03 oliver Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/util/PSQLState.java,v 1.9.2.1 2006/04/29 00:07:10 jurka Exp $ * *------------------------------------------------------------------------- */ -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

