Re: Perfomance decreasing - Mailing list pgsql-general

From Hiroshi Inoue
Subject Re: Perfomance decreasing
Date
Msg-id 3B7C97D9.F033F015@tpf.co.jp
Whole thread Raw
In response to RE: Re[2]: Perfomance decreasing  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Responses Re: Perfomance decreasing  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
>
> Hiroshi Inoue <Inoue@tpf.co.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Perfomance decreasing
Next
From: Tom Lane
Date:
Subject: Re: Perfomance decreasing