Re: Update violating constraint

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
Cc: Naz Gassiep <naz(at)mira(dot)net>, Michael Glaesemann <grzm(at)seespotcode(dot)net>, Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Update violating constraint
Date: 2007-05-03 14:06:52
Message-ID: 1178201212.4260.53.camel@coppola.muc.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> If you are updating a large portion of your tree, you will probably want to throw in a vacuum in
> between the two updates. This should reduce the bloat caused by dead tuples in both your index
> and table.

... but that will only work if you can commit the first set of changes
before you get to the end result, possibly having an inconsistent state
for the duration of the vacuum... if you want all in one transaction,
vacuum will not help.

Cheers,
Csaba.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2007-05-03 14:12:43 tuple concurrently updated
Previous Message Richard Broersma Jr 2007-05-03 14:00:25 Re: Update violating constraint