Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5ADAA9FB392 for ; Wed, 11 Oct 2006 09:48:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 16678-02 for ; Wed, 11 Oct 2006 09:48:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 1EC239FB391 for ; Wed, 11 Oct 2006 09:48:29 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (p549D1B3A.dip0.t-ipconnect.de [84.157.27.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id DBA166599A; Wed, 11 Oct 2006 14:50:56 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id B150518151EB9; Wed, 11 Oct 2006 14:48:26 +0200 (CEST) Message-ID: <452CE81A.5010001@logix-tt.com> Date: Wed, 11 Oct 2006 14:48:26 +0200 From: Markus Schaber Reply-To: pgsql-sql@postgresql.org Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.5 (X11/20060812) MIME-Version: 1.0 To: Daniel Drotos Cc: pgsql-sql@postgresql.org Subject: Re: deleting rows in specific order References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.2 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/110 X-Sequence-Number: 26499 Hi, Daniel, Daniel Drotos wrote: > What is the best way to do something like: > > delete from tablename where something order by somefield... There should be no need for this, because a delete is atomic due to the transaction system. What is it that you're trying to achieve with the ordered delete? Maybe there's a better way to solve your underlying problem. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in Europe! www.ffii.org www.nosoftwarepatents.org