Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 6415B2E00FD for ; Fri, 22 Feb 2008 17:13:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 96583-10 for ; Fri, 22 Feb 2008 17:13:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 62B202E00FA for ; Fri, 22 Feb 2008 17:13:20 -0400 (AST) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 0D33A158036E; Fri, 22 Feb 2008 16:16:54 -0500 (EST) Cc: "Kris Jurka" , "Kai Ruhl" , pgsql-jdbc@postgresql.org Message-Id: <6CA15016-F105-4963-B9B2-3462EA2B3B53@fastcrypt.com> From: Dave Cramer To: Andres Olarte In-Reply-To: <3fccaa690802221239t4763c8e8y7ad83e2cd1cfb2a5@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: JVM crash when select count(*) on large table through JDBC Date: Fri, 22 Feb 2008 16:13:18 -0500 References: <6A512B66-38FD-4CB7-A2BC-73198ECC5563@fastcrypt.com> <3fccaa690802221219u7c7fd66bk4cc152cb8819e26b@mail.gmail.com> <3fccaa690802221239t4763c8e8y7ad83e2cd1cfb2a5@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/183 X-Sequence-Number: 18390 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 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