Re: Perfomance decreasing
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Alexander Loginov <sas@mplik.ru>, pgsql-general@postgresql.org
Date: 2001-08-17T03:42:31Z
Lists: pgsql-general
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. Just for one problem, what if someone else tries to drop the relation in one of those intervals where you're not holding a lock? regards, tom lane