Re: PL/pgSQL infinite loop in "UPDATE/INSERT" example

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Brown <mbrown(at)fensystems(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/pgSQL infinite loop in "UPDATE/INSERT" example
Date: 2009-08-25 21:03:42
Message-ID: 2629.1251234222@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Brown <mbrown(at)fensystems(dot)co(dot)uk> writes:
> I believe that Example 38-2 ("Exceptions with UPDATE/INSERT") in the PL/pgSQL
> documentation suffers from a race condition leading to a potential infinite
> loop when running at isolation level SERIALIZABLE.

You're right, it's not designed to work in serializable mode.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message APseudoUtopia 2009-08-25 21:20:27 Importing Mangled SQL File via psql
Previous Message benoît carpentier 2009-08-25 21:01:14 Re: Benetl, a free ETL tool for files using postgreSQL, is out in version 3.0