pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgres is not closing JDBC connection .. Please help
3+ messages / 3 participants
[nested] [flat]
* Postgres is not closing JDBC connection .. Please help
@ 2003-09-15 06:56 Deepak Malhotra <deepakjm@yahoo.com>
0 siblings, 2 replies; 3+ messages in thread
From: Deepak Malhotra @ 2003-09-15 06:56 UTC (permalink / raw)
To: pgsql-admin
Hello
I am using POstgres 7.3 and jdbc driver
org.postgresql.Driver.
I am using jdbc driver for PostgreSQL to connect to
the database and when I am closing the database
connection using Java but it seems PostgreSQL does not
close the connection actually. If the web page, which
uses the database connection, was visited
consecutively it freezes when trying to connect to the
database
Only solution is to shutdown Postgres Database and
restart it and it is not a very good solution.
Any Suggestion to clean jdbc connection in Postgres
database.
Thanks
Deepak
=====
Deepak Malhotra
Phoenix, AZ
deepakjm@yahoo.com
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Postgres is not closing JDBC connection .. Please help
@ 2003-09-15 08:53 Hornyak Laszlo <kocka@tigrasoft.hu>
parent: Deepak Malhotra <deepakjm@yahoo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Hornyak Laszlo @ 2003-09-15 08:53 UTC (permalink / raw)
To: Deepak Malhotra <deepakjm@yahoo.com>; +Cc: pgsql-admin
I think you should fix this in the java code, because PostgreSQL cannot
say goodye for the client. For example close connection in the "finally"
block, so it will be closed even if the code inside has a failure.
On Mon, 15 Sep 2003, Deepak Malhotra wrote:
> Hello
>
> I am using POstgres 7.3 and jdbc driver
> org.postgresql.Driver.
>
> I am using jdbc driver for PostgreSQL to connect to
> the database and when I am closing the database
> connection using Java but it seems PostgreSQL does not
> close the connection actually. If the web page, which
> uses the database connection, was visited
> consecutively it freezes when trying to connect to the
> database
>
> Only solution is to shutdown Postgres Database and
> restart it and it is not a very good solution.
>
> Any Suggestion to clean jdbc connection in Postgres
> database.
>
> Thanks
>
> Deepak
>
> =====
> Deepak Malhotra
> Phoenix, AZ
>
> deepakjm@yahoo.com
>
> ________________________________________________________________________
> Want to chat instantly with your online friends? Get the FREE Yahoo!
> Messenger http://mail.messenger.yahoo.co.uk
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Postgres is not closing JDBC connection .. Please help
@ 2003-09-15 14:29 Tom Lane <tgl@sss.pgh.pa.us>
parent: Deepak Malhotra <deepakjm@yahoo.com>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2003-09-15 14:29 UTC (permalink / raw)
To: Deepak Malhotra <deepakjm@yahoo.com>; +Cc: pgsql-admin
=?iso-8859-1?q?Deepak=20Malhotra?= <deepakjm@yahoo.com> writes:
> I am using jdbc driver for PostgreSQL to connect to
> the database and when I am closing the database
> connection using Java but it seems PostgreSQL does not
> close the connection actually.
You've got that backwards: Java is not closing the Postgres connection.
You could be falling afoul of connection-pooling features in the JDBC
driver, perhaps. Ask in the JDBC list if you need more help.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-09-15 14:29 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15 06:56 Postgres is not closing JDBC connection .. Please help Deepak Malhotra <deepakjm@yahoo.com>
2003-09-15 08:53 ` Hornyak Laszlo <kocka@tigrasoft.hu>
2003-09-15 14:29 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox