Re: Slow Bulk Delete - Mailing list pgsql-performance

From Jon Nelson
Subject Re: Slow Bulk Delete
Date
Msg-id AANLkTilWtM3tFBqxll5h_V0YWnB4sxgPyxb1bauwxk_2@mail.gmail.com
Whole thread Raw
In response to Re: Slow Bulk Delete  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-performance
On Mon, May 17, 2010 at 7:28 AM, A. Kretschmer
<andreas.kretschmer@schollglas.com> wrote:
> In response to Jon Nelson :
>> On Mon, May 17, 2010 at 5:10 AM, Pierre C <lists@peufeu.com> wrote:
>> > - or use a JOIN delete with a virtual VALUES table
>> > - or fill a temp table with ids and use a JOIN DELETE
>>
>> What is a virtual VALUES table? Can you give me an example of using a
>> virtual table with selects, joins, and also deletes?
>
> Something like this:
...

delete from foo using (values (1),(2) ) as bla where foo.c1=bla.column1;
...

Aha! Cool. That's not quite what I envisioned when you said virtual
table, but it surely clarifies things.
Thanks!

--
Jon

pgsql-performance by date:

Previous
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: Slow Bulk Delete
Next
From: Scott Marlowe
Date:
Subject: merge join killing performance