Re: postponing index updates in a transaction

From: Bret Hughes <bhughes(at)elevating(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: postponing index updates in a transaction
Date: 2002-12-11 09:39:40
Message-ID: 1039599581.2864.7.camel@bretsony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2002-12-11 at 03:27, Jean-Christian Imbeault wrote:
> To speed up the inserting of many rows, is there a way to turn off any
> index update being done while inside a transaction and have the index be
> update at COMMIT?
>
> Something similar to the "initially deferred" constraint.
>
> Thanks,
>
> Jc
>
I don't think so.

The docs refer to this issue and suggest dropping the index, doing the
updates and then recreating the index. using copy from is way faster
than individual inserts too.

Bret

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Han Holl 2002-12-11 10:23:58 Update command on view returns tuples
Previous Message Jean-Christian Imbeault 2002-12-11 09:27:06 postponing index updates in a transaction