Re: Perfomance decreasing

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alexander Loginov <sas(at)mplik(dot)ru>, pgsql-general(at)postgresql(dot)org
Subject: Re: Perfomance decreasing
Date: 2001-08-17 04:04:41
Message-ID: 3B7C97D9.F033F015@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
>
> Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> writes:
> > One backend would be blocked by another one because reindex_relation
> > calls reindex_index and reindex_index grabs an ExclusiveLock on the
> > relation.
> > Am I missing anything ?
>
> It'd be okay if you *held* the lock throughout. Grabbing and releasing
> it isn't safe IMHO.

Maybe I'm slow on the uptake because I've just finished a
short vacation. Where do I release the lock ?

regards,
Hiroshi Inoue

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-08-17 04:07:11 Re: Perfomance decreasing
Previous Message Tom Lane 2001-08-17 03:42:31 Re: Perfomance decreasing