Re: DELETE with LIMIT (or my first hack)

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: DELETE with LIMIT (or my first hack)
Дата
Msg-id 4CF6497D.3040303@cs.helsinki.fi
обсуждение исходный текст
Ответ на Re: DELETE with LIMIT (or my first hack)  (Valentine Gogichashvili <valgog@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Kristian Nielsen
Дата:
Сообщение: Re: We need index-only scans
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: crash-safe visibility map, take three