pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Szabolcs BALLA <szballa@confinsystems.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: single click, double query
Date: Thu, 15 Dec 2005 06:59:05 -0800 (PST)
Message-ID: <20051215065531.U65929@megazone.bigpanda.com> (raw)
In-Reply-To: <43A15F0B.6080306@confinsystems.com>
References: <43A15F0B.6080306@confinsystems.com>

On Thu, 15 Dec 2005, Szabolcs BALLA wrote:

> Hi,
>
> I have a strange problem with psql 7.4.7.
> I have customers who run xp, with sp1 (with sp2 no problem), when they
> report from our web-based application they send a query
> after a single click. The same queries have been posted twice within a
> few milliseconds.
> How can I forbid this on db server side? Is it possible?

Not easily that I can think of.  Something between the two that passes
connections but filters queries might be reasonably easy to make. I see
two possible problems with this on the server side though.  First, if
those are coming in separate connections then you have to either delay for
the first query or pay the cost of making a database backend even if
you're going to drop it if its a duplicate. Second, if it's possible for
two client instances to send the same query then you could break the
application in the other direction where the second client gets no
response.



view thread (4+ messages)

Message-ID: <20051215065531.U65929@megazone.bigpanda.com>
Permalink:  ../20051215065531.U65929@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20051215065531.U65929@megazone.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, szballa@confinsystems.com
  Subject: Re: single click, double query
  In-Reply-To: <20051215065531.U65929@megazone.bigpanda.com>
  References: <43A15F0B.6080306@confinsystems.com> <20051215065531.U65929@megazone.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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