Re: update 600000 rows

From: andrew(at)pillette(dot)com
To: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
Cc: andrew(at)pillette(dot)com, okparanoid(at)free(dot)fr, pgsql-performance(at)postgresql(dot)org
Subject: Re: update 600000 rows
Date: 2007-12-16 20:45:02
Message-ID: 200712162045.lBGKj2I03112@pillette.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I wrote
> That's what I did at first, but later I found better performance with
> a TRIGGER on the permanent table that deletes the target of an UPDATE,
> if any, before the UPDATE. [INSERT!] That's what PG does anyway, and now I can do
> the entire UPDATE [INSERT] in one command.

It's probably obvious, but what I should have said is that now I do the INSERT in one command; I have no need of an UPDATE. So I do no UPDATEs, only INSERTs.

Browse pgsql-performance by date

  From Date Subject
Next Message James Mansion 2007-12-16 22:24:01 Re: libgcc double-free, backend won't die
Previous Message Usama Dar 2007-12-16 20:33:58 Re: Large Objects and Toast