pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: Daniel Drotos <drdani@mazsola.iit.uni-miskolc.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: deleting rows in specific order
Date: Wed, 11 Oct 2006 14:48:26 +0200
Message-ID: <452CE81A.5010001@logix-tt.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0610092207210.24332@mazsola.iit.uni-miskolc.hu>
References: <Pine.LNX.4.61.0610092207210.24332@mazsola.iit.uni-miskolc.hu>

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



view thread (6+ messages)  latest in thread

Message-ID: <452CE81A.5010001@logix-tt.com>
Permalink:  ../452CE81A.5010001@logix-tt.com/
Also on:    postgresql.org/message-id/452CE81A.5010001@logix-tt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: schabi@logix-tt.com, drdani@mazsola.iit.uni-miskolc.hu
  Subject: Re: deleting rows in specific order
  In-Reply-To: <452CE81A.5010001@logix-tt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox