Skip site navigation (1) Skip section navigation (2)

Re: BUG #2695: Randomly repeated query execution

From: Richard Troy <rtroy(at)ScienceTools(dot)com>
To: Jakub <kuna44(at)wp(dot)pl>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #2695: Randomly repeated query execution
Date: 2006-10-17 15:38:20
Message-ID: Pine.LNX.4.33.0610170831000.6905-100000@denzel.in (view raw or flat)
Thread:
Lists: pgsql-bugs

On Mon, 16 Oct 2006, Jakub wrote:
>
> The following bug has been logged online:
>
> Bug reference:      2695
> Logged by:          Jakub
> Email address:      kuna44(at)wp(dot)pl
> PostgreSQL version: Postgres 7.4
> Operating system:   Linux
> Description:        Randomly repeated  query execution
> Details:
>
> Sometimes, randomly single query execution is repeated   twice or more in
> 2-5 second.
>
> Thanks,
> Jakub
>

Jakub,

I've seen this type of thing before, but it wasn't Postgres' fault. In the
examples I've seen (on many different occasions, in differing
circumstances) the application was actually issuing the query multiple
times and usually the cause of that was improper (multiple) event handling
by the application's GUI. In particular, if the language is Java, look for
errant event-handling methods.

I've also seen this type of error caused by error handling packages that
attempt to auto-recover based on various errors when they have a bug
regarding what kinds of errors are recoverable and which are not. As
examples, a lost network link may be recoverable, but an attribute not
existing in a table/relation is not.

Try some very careful coding around the suspect queries to log in your own
code whether queries are being repeated or not.

Regards,
Richard


-- 
Richard Troy, Chief Scientist
Science Tools Corporation
510-924-1363 or 202-747-1263
rtroy(at)ScienceTools(dot)com, http://ScienceTools.com/


In response to

pgsql-bugs by date

Next:From: Peter EisentrautDate: 2006-10-17 19:38:42
Subject: Re: BUG #2693: Abut SQL ASCII through JDBC
Previous:From: Tom LaneDate: 2006-10-17 14:33:13
Subject: Re: 8.2beta1 (w32): server process crash (tsvector)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group