Search Postgresql Archives

Re: deadlock while re-indexing table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alvaro Herrera <alvherre@xxxxxxxxxxxxxxxxx> writes:
> Dave Cramer wrote:
>> reindex table user_profile;
>> ERROR:  deadlock detected
>> DETAIL:  Process 32450 waits for AccessExclusiveLock on relation  
>> 194689112 of database 163880909; blocked by process 31236.
>> Process 31236 waits for AccessShareLock on relation 194689110 of  
>> database 163880909; blocked by process 32450.

> I don't find this very surprising ... I would suggest using "reindex
> index" for each index instead.  I'm not sure if REINDEX TABLE is
> supposed to be deadlock-free.

It's not guaranteed to be so, but I'd think simple cases would be
okay.  What's that other process doing?

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux