pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Olarte <olarte.andres@gmail.com>
To: Kai Ruhl <k.ruhl@etamax.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JVM crash when select count(*) on large table through JDBC
Date: Fri, 22 Feb 2008 14:19:02 -0600
Message-ID: <3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com> (raw)
In-Reply-To: <6A512B66-38FD-4CB7-A2BC-73198ECC5563@fastcrypt.com>
References: <EA13934D0B77D048A9BFD95BDA9D5C7D1DFC05@ariane5.etamax.site>
	<6A512B66-38FD-4CB7-A2BC-73198ECC5563@fastcrypt.com>

Just did a quick test with synthetic data (20M rows 3 columns: serial,
timestamp, and text).  And it worked ok both on Java (with driver
postgresql-8.1-407.jdbc3.jar)  and PgAdmin.

Perhaps you could try to build a test case to expose the problem?

On Fri, Feb 22, 2008 at 1:30 PM, Dave Cramer <pg@fastcrypt.com> wrote:
>
>  On 22-Feb-08, at 11:25 AM, Kai Ruhl wrote:
>
>  > Hello,
>  >
>  > I have a curious problem, which I would like to know whether somebody
>  > can reproduce this: From a JVM using JDBC, I issue
>  >
>  >       select count(*) from big_table
>  >
>  > where big table has more than 20 million entries (timestamps and
>  > numbers). Upon PreparedStatement.executeQuery(), the VM quits, without
>  > any message.
>  >
>  It's my understanding that regardless of what a java program is doing
>  (aside from calling exit, or jni code) , it should never crash.
>
>  I would say there is a bug in your jvm.
>
>
>
>  ---------------------------(end of broadcast)---------------------------
>  TIP 6: explain analyze is your friend
>



view thread (6+ messages)  latest in thread

Message-ID: <3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com>
Permalink:  ../3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com/
Also on:    postgresql.org/message-id/3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: olarte.andres@gmail.com, k.ruhl@etamax.de
  Subject: Re: JVM crash when select count(*) on large table through JDBC
  In-Reply-To: <3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com>
  References: <EA13934D0B77D048A9BFD95BDA9D5C7D1DFC05@ariane5.etamax.site> <6A512B66-38FD-4CB7-A2BC-73198ECC5563@fastcrypt.com> <3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox