pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedException from deadlock
6+ messages / 5 participants
[nested] [flat]
* Exception from deadlock
@ 2005-07-07 14:29 Joseph Shraibman <jks@selectacast.net>
2005-07-07 23:16 ` Re: Exception from deadlock Oliver Jowett <oliver@opencloud.com>
0 siblings, 1 reply; 6+ messages in thread
From: Joseph Shraibman @ 2005-07-07 14:29 UTC (permalink / raw)
To: pgsql-jdbc
org.postgresql.util.PSQLException: ERROR: deadlock detected
at
org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:152)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:517)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:273)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:259)
When I get a deadlock on psql, I get:
ERROR: deadlock detected
DETAIL: Process 12189 waits for ShareLock on transaction 3657282;
blocked by process 12109.
Process 12109 waits for ShareLock on transaction 3657280; blocked by
process 12189.
So my quesion is where did that detail information go in the jdbc driver?
I'm using postgres 7.4.7 with the jdbc driver that comes with it.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Exception from deadlock
2005-07-07 14:29 Exception from deadlock Joseph Shraibman <jks@selectacast.net>
@ 2005-07-07 23:16 ` Oliver Jowett <oliver@opencloud.com>
2005-07-09 00:58 ` Re: Exception from deadlock Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Jowett @ 2005-07-07 23:16 UTC (permalink / raw)
To: Joseph Shraibman <jks@selectacast.net>; +Cc: pgsql-jdbc
Joseph Shraibman wrote:
> So my quesion is where did that detail information go in the jdbc driver?
>
> I'm using postgres 7.4.7 with the jdbc driver that comes with it.
Can you try an 8.0-era driver from jdbc.postgresql.org? There have been
a number of changes to server error message handling since 7.4.
-O
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Exception from deadlock
2005-07-07 14:29 Exception from deadlock Joseph Shraibman <jks@selectacast.net>
2005-07-07 23:16 ` Re: Exception from deadlock Oliver Jowett <oliver@opencloud.com>
@ 2005-07-09 00:58 ` Kris Jurka <books@ejurka.com>
2005-07-09 16:09 ` Re: Exception from deadlock peter royal <proyal@pace2020.com>
2005-07-10 11:56 ` Re: Exception from deadlock Dave Cramer <pg@fastcrypt.com>
2005-07-11 00:07 ` Re: Exception from deadlock Oliver Jowett <oliver@opencloud.com>
0 siblings, 3 replies; 6+ messages in thread
From: Kris Jurka @ 2005-07-09 00:58 UTC (permalink / raw)
To: Oliver Jowett <oliver@opencloud.com>; +Cc: Joseph Shraibman <jks@selectacast.net>; pgsql-jdbc
On Thu, 7 Jul 2005, Oliver Jowett wrote:
> Joseph Shraibman wrote:
>
> > So my quesion is where did that detail information go in the jdbc driver?
> >
> > I'm using postgres 7.4.7 with the jdbc driver that comes with it.
>
> Can you try an 8.0-era driver from jdbc.postgresql.org? There have been
> a number of changes to server error message handling since 7.4.
>
Actually this is the same in 7.4 and later versions. The level of detail
put into the exception message is derived from the loglevel URL parameter,
see the toString method.
http://gborg.postgresql.org/project/pgjdbc/cvs/co.php/pgjdbc/org/postgresql/util/ServerErrorMessage....
Later driver versions (8.1dev) allow pg specific code to access all of the
fields individually to craft any message they desire.
I personally like the idea of putting more information into the default
error message. How much more do people want?
http://www.postgresql.org/docs/8.0/static/protocol-error-fields.html
Kris Jurka
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Exception from deadlock
2005-07-07 14:29 Exception from deadlock Joseph Shraibman <jks@selectacast.net>
2005-07-07 23:16 ` Re: Exception from deadlock Oliver Jowett <oliver@opencloud.com>
2005-07-09 00:58 ` Re: Exception from deadlock Kris Jurka <books@ejurka.com>
@ 2005-07-09 16:09 ` peter royal <proyal@pace2020.com>
2 siblings, 0 replies; 6+ messages in thread
From: peter royal @ 2005-07-09 16:09 UTC (permalink / raw)
To: pgsql-jdbc
On Jul 8, 2005, at 8:58 PM, Kris Jurka wrote:
> Later driver versions (8.1dev) allow pg specific code to access all
> of the
> fields individually to craft any message they desire.
>
> I personally like the idea of putting more information into the
> default
> error message. How much more do people want?
>
> http://www.postgresql.org/docs/8.0/static/protocol-error-fields.html
as much as possible :)
-pete
--
peter royal -> proyal@pace2020.com
Attachments:
smime.p7s (application/pkcs7-signature, 2.3K) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Exception from deadlock
2005-07-07 14:29 Exception from deadlock Joseph Shraibman <jks@selectacast.net>
2005-07-07 23:16 ` Re: Exception from deadlock Oliver Jowett <oliver@opencloud.com>
2005-07-09 00:58 ` Re: Exception from deadlock Kris Jurka <books@ejurka.com>
@ 2005-07-10 11:56 ` Dave Cramer <pg@fastcrypt.com>
2 siblings, 0 replies; 6+ messages in thread
From: Dave Cramer @ 2005-07-10 11:56 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: Oliver Jowett <oliver@opencloud.com>; Joseph Shraibman <jks@selectacast.net>; pgsql-jdbc
Kris,
I think as much as possible makes sense too, this shouldn't be in the
critical path for performance, so why not ?
Dave
On 8-Jul-05, at 8:58 PM, Kris Jurka wrote:
>
>
> On Thu, 7 Jul 2005, Oliver Jowett wrote:
>
>
>
>> Joseph Shraibman wrote:
>>
>>
>>
>>> So my quesion is where did that detail information go in the jdbc
>>> driver?
>>>
>>> I'm using postgres 7.4.7 with the jdbc driver that comes with it.
>>>
>>>
>>
>> Can you try an 8.0-era driver from jdbc.postgresql.org? There have
>> been
>> a number of changes to server error message handling since 7.4.
>>
>>
>>
>
> Actually this is the same in 7.4 and later versions. The level of
> detail
> put into the exception message is derived from the loglevel URL
> parameter,
> see the toString method.
>
> http://gborg.postgresql.org/project/pgjdbc/cvs/co.php/pgjdbc/org/
> postgresql/util/ServerErrorMessage.java?r=1.8
>
> Later driver versions (8.1dev) allow pg specific code to access all
> of the
> fields individually to craft any message they desire.
>
> I personally like the idea of putting more information into the
> default
> error message. How much more do people want?
>
> http://www.postgresql.org/docs/8.0/static/protocol-error-fields.html
>
> Kris Jurka
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
>
>
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
ICQ #14675561
jabber davecramer@jabber.org
ph (519 939 0336 )
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Exception from deadlock
2005-07-07 14:29 Exception from deadlock Joseph Shraibman <jks@selectacast.net>
2005-07-07 23:16 ` Re: Exception from deadlock Oliver Jowett <oliver@opencloud.com>
2005-07-09 00:58 ` Re: Exception from deadlock Kris Jurka <books@ejurka.com>
@ 2005-07-11 00:07 ` Oliver Jowett <oliver@opencloud.com>
2 siblings, 0 replies; 6+ messages in thread
From: Oliver Jowett @ 2005-07-11 00:07 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: Joseph Shraibman <jks@selectacast.net>; pgsql-jdbc
Kris Jurka wrote:
> I personally like the idea of putting more information into the default
> error message. How much more do people want?
I'd go for severity, message, and detail by default, and "everything" if
you crank up the log level (do we want this to be a separate option to
log level, actually?).
-O
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2005-07-11 00:07 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-07 14:29 Exception from deadlock Joseph Shraibman <jks@selectacast.net>
2005-07-07 23:16 ` Oliver Jowett <oliver@opencloud.com>
2005-07-09 00:58 ` Kris Jurka <books@ejurka.com>
2005-07-09 16:09 ` peter royal <proyal@pace2020.com>
2005-07-10 11:56 ` Dave Cramer <pg@fastcrypt.com>
2005-07-11 00:07 ` Oliver Jowett <oliver@opencloud.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