pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedHandling network errors during initial connection and ongoing use
2+ messages / 2 participants
[nested] [flat]
* Handling network errors during initial connection and ongoing use
@ 2007-04-17 14:59 Adrian Custer <acuster@gmail.com>
2007-04-17 20:11 ` Re: Handling network errors during initial connection and ongoing use Michael Schmidt <michaelmschmidt@msn.com>
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Custer @ 2007-04-17 14:59 UTC (permalink / raw)
To: pgsql-jdbc
Hey all,
I'm working on fixing an application that uses jdbc so it will provide
users with a better understanding of what is wrong when things go wrong.
However, I cannot find any information on elegant ways to handle the
'unreliable' part of tcp/ip.
Is there some common strategy to handle network errors during setup or
use of jdbc?
Specifically, I imagine all java applications using jdbc would have to
handle:
during initial connection
no network
no dns
host name unknown
no answer on port
answer on port not postgresql
bad authentication
(wrong username/password if these are distinct)
user doesn't have permissions to read database
during ongoing use
network failure
server failure
Could anyone point me toward documents/topic which cover these issues?
Thank you,
adrian custer
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Handling network errors during initial connection and ongoing use
2007-04-17 14:59 Handling network errors during initial connection and ongoing use Adrian Custer <acuster@gmail.com>
@ 2007-04-17 20:11 ` Michael Schmidt <michaelmschmidt@msn.com>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Schmidt @ 2007-04-17 20:11 UTC (permalink / raw)
To: pgsql-jdbc; Adrian Custer <acuster@gmail.com>
I addressed several of these issues in Komo, although I don't know how "elegant" my efforts were. You can download the source code from the Komo project at pgFoundry, and look particularly at the ConnectionManager class. If you upgrade the code, I would definitely be interested in hearing from you back channel (MichaelMSchmidt@msn.com<mailto:MichaelMSchmidt@msn.com>).
Best of luck!
Michael Schmidt
----- Original Message -----
From: Adrian Custer<mailto:acuster@gmail.com>
To: pgsql-jdbc@postgresql.org<mailto:pgsql-jdbc@postgresql.org>
Sent: Tuesday, April 17, 2007 8:59 AM
Subject: [JDBC] Handling network errors during initial connection and ongoing use
Hey all,
I'm working on fixing an application that uses jdbc so it will provide
users with a better understanding of what is wrong when things go wrong.
However, I cannot find any information on elegant ways to handle the
'unreliable' part of tcp/ip.
Is there some common strategy to handle network errors during setup or
use of jdbc?
Specifically, I imagine all java applications using jdbc would have to
handle:
during initial connection
no network
no dns
host name unknown
no answer on port
answer on port not postgresql
bad authentication
(wrong username/password if these are distinct)
user doesn't have permissions to read database
during ongoing use
network failure
server failure
Could anyone point me toward documents/topic which cover these issues?
Thank you,
adrian custer
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-04-17 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-04-17 14:59 Handling network errors during initial connection and ongoing use Adrian Custer <acuster@gmail.com>
2007-04-17 20:11 ` Michael Schmidt <michaelmschmidt@msn.com>
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