Re: translating this SQL query from a different dialect - Mailing list pgsql-novice

From A. Kretschmer
Subject Re: translating this SQL query from a different dialect
Date
Msg-id 20060110200115.GA9145@webserv.wug-glas.de
Whole thread Raw
In response to Re: translating this SQL query from a different dialect  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-novice
am  10.01.2006, um 20:06:26 +0100 mailte A. Kretschmer folgendes:
> am  10.01.2006, um 10:38:59 -0700 mailte Michael Fuhr folgendes:
> > Beware that as written this doesn't handle concurrency.  For example:
>

I'm not sure, if this enough to prevent problems:

...
begin
        lock table foo in EXCLUSIVE mode ;
        select into c count(*) from foo;
...

All other lines are unchanged.


I think/hope, i can prevent all problems, but i'm not sure if there are
problems with Deadlocks.


thanks for the response, Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47212,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net
eMail schreiben kann jeder -- lernen: http://webserv/email/email.html

pgsql-novice by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: translating this SQL query from a different dialect
Next
From: Jaime Casanova
Date:
Subject: Re: translating this SQL query from a different dialect