Re: Lock while delete a table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sergio Sinuco <sergiosinuco(at)datatraffic(dot)com(dot)co>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Lock while delete a table
Date: 2012-01-02 17:07:06
Message-ID: 23491.1325524026@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Sergio Sinuco <sergiosinuco(at)datatraffic(dot)com(dot)co> writes:
> Why does a drop table need an AccessExclusiveLock in tables refered by
> the deleted table?

To remove the triggers on the other table.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2012-01-02 18:07:07 Re: error tryiing to insert with collate
Previous Message Jean-Yves F. Barbier 2012-01-02 16:55:17 Re: Lock while delete a table