Re: Scope of constraint names

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Scope of constraint names
Дата
Msg-id 29757.1025756957@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Scope of constraint names  (Rod Taylor <rbt@zort.ca>)
Ответы Re: Scope of constraint names  (Rod Taylor <rbt@zort.ca>)
Список pgsql-hackers
Rod Taylor <rbt@zort.ca> writes:
>> I don't want to have to take a global lock whenever we
>> create an index.

> I don't understand why a global lock is necessary --

To be sure we are creating a unique constraint name.

> and not simply a lock on the pg_constraint table

In this context, a lock on pg_constraint *is* global, because it will
mean that no one else can be creating an index on some other table.
They'd need to hold that same lock to ensure that *their* chosen
constraint name is unique.
        regards, tom lane




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: listen/notify argument (old topic revisited)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: regress/results directory problem