Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8D09D2E010A for ; Fri, 22 Feb 2008 16:39:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 35741-06 for ; Fri, 22 Feb 2008 16:39:56 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by postgresql.org (Postfix) with ESMTP id 408082E0101 for ; Fri, 22 Feb 2008 16:39:56 -0400 (AST) Received: by wf-out-1314.google.com with SMTP id 28so288746wff.28 for ; Fri, 22 Feb 2008 12:39:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7bSYkFBa7bSmrGG3MT8IFxORm+Zp+eZTMskI1+iZObY=; b=lts3Syy7HGDgKgE+ZrjKyDKFU8NaHpEUQr8Wf98p1fhCEEMM1JmciW3miyIJr1224npSCJkPAIVH+kGdXxHiO3Q3RMDfqj35RmjDPkesPn2m6DEdzuT/pZ+P63FCAN/o5Ln5RRCK8kTKQsC5OjwiU+a97Teh6bd6nRbDF5t8Mrc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jzH6qELmhvJPBNJJYE9+4y0NlH7hvDADenxVbh3a51XtH2S/Hs47R2dwHVpAxEqFvqxvSXXZdKAVAlOXfVanYbql0csKpCRoZSa0TdOYa8NyA85DCQQN8JUQXITY5D7WGxWc0+VbIiFu8aV45Bo6vRFqZ7Hsg9SQYfj6W/3Ooy0= Received: by 10.142.224.5 with SMTP id w5mr369182wfg.215.1203712794891; Fri, 22 Feb 2008 12:39:54 -0800 (PST) Received: by 10.142.179.18 with HTTP; Fri, 22 Feb 2008 12:39:54 -0800 (PST) Message-ID: <3fccaa690802221239t4763c8e8y7ad83e2cd1cfb2a5@mail.gmail.com> Date: Fri, 22 Feb 2008 14:39:54 -0600 From: "Andres Olarte" To: "Kris Jurka" Subject: Re: JVM crash when select count(*) on large table through JDBC Cc: "Kai Ruhl" , pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6A512B66-38FD-4CB7-A2BC-73198ECC5563@fastcrypt.com> <3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/182 X-Sequence-Number: 18389 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 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 >