Re: BUG #3479: contraint exclusion and locks - Mailing list pgsql-bugs

From Tiago Daniel Jacobs
Subject Re: BUG #3479: contraint exclusion and locks
Date
Msg-id 4729EE18.4080907@mdtestudio.com.br
Whole thread Raw
In response to Re: BUG #3479: contraint exclusion and locks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Hi, why if I REINDEX a inherited table, all tables are locked?

Example:
[conn #1]     REINDEX TABLE month_a;
[conn #2]     PREPARE updt as update month_b set col_a=1 where col_b=$1;

The query on conn#2 waits.

regards,
Tiago

Tom Lane escreveu:

  "Tiago Jacobs" <tiago@mdtestudio.com.br> writes:


    oh-ow... It waits while the table (That is not used) is locked.



This is not a bug.  It has to inspect the table to find out that
there is a constraint.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Idris Khanafi"
Date:
Subject: Tsearch in Postgresql 8.2.5
Next
From: Michael
Date:
Subject: Re: PostgreSQL crash on Freebsd 7