Re: DELETE with LIMIT (or my first hack) - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: DELETE with LIMIT (or my first hack)
Date
Msg-id 4CF6497D.3040303@cs.helsinki.fi
Whole thread Raw
In response to Re: DELETE with LIMIT (or my first hack)  (Valentine Gogichashvili <valgog@gmail.com>)
List pgsql-hackers
On 2010-12-01 1:46 PM, Valentine Gogichashvili wrote:
> And speaking about pushing
> data from one table to another, what I really would like to be able to do
> would be also something like:
>
> INSERT INTO ...
> DELETE FROM ... WHERE... ORDER BY.. [LIMIT...]
> RETURNING...;
>
> this would be also quite efficient when re-arranging data in table
> partitions

There already are plans for implementing this (and actually a patch in 
the latest commitfest, look for "writeable CTEs"), sans the ORDER BY and 
LIMIT part.


Regards,
Marko Tiikkaja


pgsql-hackers by date:

Previous
From: Kristian Nielsen
Date:
Subject: Re: We need index-only scans
Next
From: Bruce Momjian
Date:
Subject: Re: crash-safe visibility map, take three