Re: Performance question - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Performance question
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17DA3923@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to Performance question  (Anil Menon <gakmenon@gmail.com>)
Responses Re: Performance question  (Anil Menon <gakmenon@gmail.com>)
List pgsql-general
Anil Menon wrote:
> I would like to ask from your experience which would be the best "generic" method for checking if row
> sets of a certain condition exists in a PLPGSQL function.
> 
> I know of 4 methods so far (please feel free to add if I missed out any others)
[...]

Are you aware that all of these methods have a race condition unless
you use isolation level READ STABILITY or better?

It may be that rows are added or removed between the check and the
corresponding action.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: pgdump (9.2.4) not dumping all tables
Next
From: Steve Pribyl
Date:
Subject: Detecting master/slave