Re: Review: Typed Table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Review: Typed Table
Дата
Msg-id 12882.1264708873@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Review: Typed Table  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> The right thing would probably be SELECT FOR SHARE on the pg_type row,
> but I don't see that sort of thing used anywhere else in system catalog
> changes.

If we were to do it the right thing would just be to define a locktag
for type OIDs and add appropriate locking calls all over the system.
But that would be a large, invasive change that seems far outside the
scope of this patch, and certainly much beyond what can get done for
9.0.

(Actually, if memory serves there is some notion of locking on arbitrary
catalog objects already in the DROP code, so there probably is a
suitable locktag defined already.  But getting ALTER and generic type
references to play along is still a major project, and I'm not convinced
about the cost/benefit ...)
        regards, tom lane


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

Предыдущее
От: Tim Bunce
Дата:
Сообщение: Re: Add on_trusted_init and on_untrusted_init to plperl [PATCH]
Следующее
От: Tim Bunce
Дата:
Сообщение: Re: Add on_trusted_init and on_untrusted_init to plperl [PATCH]