Re: Lock while delete a table

Поиск
Список
Период
Сортировка
От Sergio Sinuco
Тема Re: Lock while delete a table
Дата
Msg-id CAHn1vgEm+dHWpHt7FkaYeUBczKLTfcP8ngPf6PkN3kGZuhgquA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Lock while delete a table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice

So, ¿a possible solution is to create the foreign key in table A with the option "ON UPDATE NO ACTION ON DELETE NO ACTION" ?

Thanks.


2012/1/2 Tom Lane <tgl@sss.pgh.pa.us>
Sergio Sinuco <sergiosinuco@datatraffic.com.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

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: error tryiing to insert with collate
Следующее
От: avalon78 geek
Дата:
Сообщение: Re: ERROR: invalid input syntax for integer: SQL state: 22P02