Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CC0F04762E6 for ; Fri, 1 Nov 2002 09:56:26 -0500 (EST) Received: from web13801.mail.yahoo.com (web13801.mail.yahoo.com [216.136.175.11]) by postgresql.org (Postfix) with SMTP id 197ED4762EA for ; Fri, 1 Nov 2002 09:56:26 -0500 (EST) Message-ID: <20021101145630.50886.qmail@web13801.mail.yahoo.com> Received: from [216.173.173.66] by web13801.mail.yahoo.com via HTTP; Fri, 01 Nov 2002 06:56:30 PST Date: Fri, 1 Nov 2002 06:56:30 -0800 (PST) From: Chris Gamache Reply-To: cgg007@yahoo.com Subject: FIFO Queue Problems To: pgsql-sql@postgresql.org In-Reply-To: <20021101143348.A7426@goldfisch.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/2 X-Sequence-Number: 10144 I'm having a race condition with a FIFO queue program that I've created... CREATE TABLE fifo ( id serial, data varchar(100), status int4 DEFAULT 0 ); I have a program that claims a row for itself my $processid = $$; my $sql_update = <