pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Andres Olarte <olarte.andres@gmail.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: 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 16:13:18 -0500
Message-ID: <6CA15016-F105-4963-B9B2-3462EA2B3B53@fastcrypt.com> (raw)
In-Reply-To: <3fccaa690802221239t4763c8e8y7ad83e2cd1cfb2a5@mail.gmail.com>
References: <EA13934D0B77D048A9BFD95BDA9D5C7D1DFC05@ariane5.etamax.site>
	<6A512B66-38FD-4CB7-A2BC-73198ECC5563@fastcrypt.com>
	<3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com>
	<Pine.BSO.4.64.0802221531070.24398@leary.csoft.net>
	<3fccaa690802221239t4763c8e8y7ad83e2cd1cfb2a5@mail.gmail.com>

As Kris said and I said. If your jvm crashes it's a jvm problem.

I know people that have queries that take 20 minutes or more...

Dave
On 22-Feb-08, at 3:39 PM, Andres Olarte wrote:

> I know it's the same to count 1 o 20M rows, but it takes much longer
> to count 20M.  I really don't know much about the internal of the
> driver, but maybe some kind of time out?
>
> On Fri, Feb 22, 2008 at 2:33 PM, Kris Jurka <books@ejurka.com> wrote:
>>
>> On Fri, 22 Feb 2008, Andres Olarte wrote:
>>
>>> 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?
>>
>> From a client perspective, select count(*) should be the same no  
>> matter
>> how many rows there are and what types of columns are in the table,  
>> so a
>> test case won't be helpful.  If the JVM is just up and dying,  
>> that's the
>> JVM's fault not a pg issue.
>>
>> Kris Jurka
>>
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
>                http://www.postgresql.org/about/donate




view thread (6+ messages)

Message-ID: <6CA15016-F105-4963-B9B2-3462EA2B3B53@fastcrypt.com>
Permalink:  ../6CA15016-F105-4963-B9B2-3462EA2B3B53@fastcrypt.com/
Also on:    postgresql.org/message-id/6CA15016-F105-4963-B9B2-3462EA2B3B53@fastcrypt.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: pg@fastcrypt.com, olarte.andres@gmail.com, books@ejurka.com, k.ruhl@etamax.de
  Subject: Re: JVM crash when select count(*) on large table through JDBC
  In-Reply-To: <6CA15016-F105-4963-B9B2-3462EA2B3B53@fastcrypt.com>
  References: <EA13934D0B77D048A9BFD95BDA9D5C7D1DFC05@ariane5.etamax.site> <6A512B66-38FD-4CB7-A2BC-73198ECC5563@fastcrypt.com> <3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com> <Pine.BSO.4.64.0802221531070.24398@leary.csoft.net> <3fccaa690802221239t4763c8e8y7ad83e2cd1cfb2a5@mail.gmail.com> <6CA15016-F105-4963-B9B2-3462EA2B3B53@fastcrypt.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