Re: Re[2]: Perfomance decreasing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexander Loginov <sas(at)mplik(dot)ru>
Cc: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re[2]: Perfomance decreasing
Date: 2001-08-16 20:06:07
Message-ID: 16185.997992367@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alexander Loginov <sas(at)mplik(dot)ru> writes:
> I have only one small question. Can I do REINDEX during inserting
> of information into tables. Or I must block somehow updating of
> tables.

Hmmm ... it looks like REINDEX only grabs AccessShareLock on the target
relation, which seems very wrong. Hiroshi, doesn't it need to get a
stronger lock to prevent concurrent insertions? For that matter,
shouldn't the lock be obtained a lot earlier, to ensure the table isn't
dropped partway through? There's a lot of processing here that seems
to be executed while holding no lock at all :-(

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Gould 2001-08-16 20:20:45 Killing inactive connections
Previous Message Gordon Campbell 2001-08-16 20:05:05 Re: DeadLocks