Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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.

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group