Re: vacuum and table locking

Поиск
Список
Период
Сортировка
От Scott Whitney
Тема Re: vacuum and table locking
Дата
Msg-id 935009944.851005.1428093087652.JavaMail.zimbra@zimbra.int.journyx.com
обсуждение
Ответ на Re: vacuum and table locking  (Scott Ribe <scott_ribe@elevated-dev.com>)
Список pgsql-admin

If you use the --no-table-lock flag from the contrib stuff, you can alleviate that...

On Fri, Apr 03, 2015 at 3:27 PM, Scott Ribe <scott_ribe@elevated-dev.com> wrote:

On Apr 3, 2015, at 9:59 AM, John Scalia <jayknowsunix@gmail.com> wrote:
>
> So the lock should only be during this move, or does it lock the table for the entirety?

The entirety. It doesn't know how to track changes that occur during the copying to the new table and apply them after, so it locks it the whole time. (Just went through this myself...)

--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice







--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

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