Re: Question about alter table rename
От | David G. Johnston |
---|---|
Тема | Re: Question about alter table rename |
Дата | |
Msg-id | CAKFQuwaWGyYEcpEjr5H2TgnVWVCK=pv0htxoj_U05R=-3UgmwQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Question about alter table rename (Garry Chen <gc92@cornell.edu>) |
Список | pgsql-novice |
Hi all,
For Postgresl release 10 an access exclusive lock is held when an alter table rename was performing. Does it prohibit a select operation against the table?
ACCESS EXCLUSIVE
Conflicts with locks of all modes (ACCESS SHARE, ROW SHARE, ROW EXCLUSIVE, SHARE UPDATE EXCLUSIVE, SHARE, SHARE ROW EXCLUSIVE, EXCLUSIVE, and ACCESS EXCLUSIVE). This mode guarantees that the holder is the only transaction accessing the table in any way.
ACCESS SHARE
Conflicts with the ACCESS EXCLUSIVE lock mode only.
The SELECT command acquires a lock of this mode on referenced tables. In general, any query that only reads a table and does not modify it will acquire this lock mode.
David J.
В списке pgsql-novice по дате отправления: