Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 83AE8633F03 for ; Wed, 16 Sep 2009 10:26:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 85541-04 for ; Wed, 16 Sep 2009 13:26:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from snt0-omc3-s29.snt0.hotmail.com (snt0-omc3-s29.snt0.hotmail.com [65.55.90.168]) by mail.postgresql.org (Postfix) with ESMTP id B1AC3633AAB for ; Wed, 16 Sep 2009 10:26:38 -0300 (ADT) Received: from SNT114-W49 ([65.55.90.136]) by snt0-omc3-s29.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Sep 2009 06:26:36 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_45eb9be1-258a-4498-9898-a3a07a0e5d26_" X-Originating-IP: [130.225.0.153] From: Angelo Nicolosi To: Subject: OOM on large SELECT Date: Wed, 16 Sep 2009 15:26:36 +0200 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 16 Sep 2009 13:26:36.0707 (UTC) FILETIME=[50EA2F30:01CA36D1] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.739 tagged_above=-10 required=5 tests=BAYES_20=-0.74, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200909/19 X-Sequence-Number: 19966 --_45eb9be1-258a-4498-9898-a3a07a0e5d26_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2CI'm Angelo and I'm new in this list.I'm a student in computer scien= ce and I'm working on a project with the postgres.I wrote some C-Language f= unctions=2C added on a database and a client=2C written in Java=2C has to u= se them.There was the problem that if the table on which the client was wor= king was larger than 10000 entries=2C the postgres was killed by the OOM. S= urfing on internet for a solution I found that one of disable the Auto-comm= it when the client make the big SELECTs.But the problem remain.The dmesg co= mmand says: Out of memory: Killed process 22592 (postgres). And the only thing that the client outputs is: Killed. On various web pages some people said that the problem could be a bug of th= e JDBC driver=2C because it doesn't really close the ResultSets. Is this tr= ue? There is some way to resolve the problem?Thank you in advance for your = help. Cheers=2CAngelo. _________________________________________________________________ Gossip=2C Sport=2C Notizie... Accendi la Messenger TV! http://www.messenger.it/messengerTV.aspx= --_45eb9be1-258a-4498-9898-a3a07a0e5d26_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C
I'm Angelo and I'm new in this list.
I'm a student i= n computer science and I'm working on a project with the postgres.
I wrote some C-Language functions=2C added on a database and a client=2C = written in Java=2C has to use them.
There was the problem that if= the table on which the client was working was larger than 10000 entries=2C= the postgres was killed by the OOM. Surfing on internet for a solution I f= ound that one of disable the Auto-commit when the client make the big SELEC= Ts.
But the problem remain.
The dmesg command says:

Out of memory: Killed process 22592 (postgres).<= /div>

And the only thing that the client outputs is: Kil= led.
On various web pages some people said that the problem c= ould be a bug of the JDBC driver=2C because it doesn't really close the Res= ultSets. Is this true? There is some way to resolve the problem?
= Thank you in advance for your help.

Cheers=2C
Angelo.


Una risposta istantanea? Usa M= essenger da Hotmail = --_45eb9be1-258a-4498-9898-a3a07a0e5d26_--