| From: | Kris Jurka <books(at)ejurka(dot)com> |
|---|---|
| To: | Andrea Lombardoni <andrea(at)lombardoni(dot)ch> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: PostgreSQL JDBC - Long Running Stored Procedure - Out of Memory |
| Date: | 2009-01-23 18:58:14 |
| Message-ID: | 497A1346.7010804@ejurka.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Andrea Lombardoni wrote:
>>> I solved my problem, but really, why does the PostgreSQL JDBC driver
>>> have to keep in memory all the RAISE NOTICE texts?
>>> Can't they simply be discarded/ignored?
>> The notices are available from Statement.getWarnings().
>
> Is there a way to make the JDBC driver ignore them?
>
>> Why output them if
>> you were just going to throw them away?
>
> They are meant to be stored in the PostgreSQL server logs (and later
> analyzed), but there is no use for them on the Java side.
>
If you don't want them sent to the client, you should adjust the setting
of client_min_messages to a higher value to keep them from being sent to
the JDBC driver at all.
Kris Jurka
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vlastimil Havranek | 2009-01-27 09:00:50 | Re: Problem with committing in XA mode |
| Previous Message | Kris Jurka | 2009-01-22 23:05:22 | Re: PostgreSQL JDBC - Long Running Stored Procedure - Out of Memory |