| From: | "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com> |
|---|---|
| To: | "PostgreSQL JDBC" <pgsql-jdbc(at)postgresql(dot)org> |
| Cc: | thierry(dot)buffet(at)fr(dot)nurun(dot)com |
| Subject: | Re: Memory leaks using refcursors |
| Date: | 2007-01-17 22:22:54 |
| Message-ID: | 1d4e0c10701171422u2e9d8758ia663dd1f826f8258@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Just a post to answer to the question of Dave Cramer on IRC and have a
comprehensive thread:
23:07 <dcramer> how would it know the cursor was open ?
AFAICS there's code in the driver to deal with the refcursor,
especially to get the cursor name and fetch all the results to a
result set.
Isn't there a way to keep the cursor name and close it automatically
when the statement or the resulting result set is closed?
I don't see an easy way to do it in the application directly (but any
tip is welcome) and ISTM it should be dealt by the driver directly to
prevent the memory usage of the backend growing dramatically during
the transaction.
--
Guillaume
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-01-17 22:31:15 | Re: Memory leaks using refcursors |
| Previous Message | Guillaume Smet | 2007-01-17 18:53:21 | Memory leaks using refcursors |