Re: Review: Typed Table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Review: Typed Table
Дата
Msg-id 14397.1264692859@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Review: Typed Table  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: Review: Typed Table  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> ISTM you should explicitly grab a lock on the of-type at some point, to
> make sure it doesn't get dropped while you're busy creating the table.
> How do we protect against that for the types used in columns?

We don't.  There is no concept of a lock on a type.

For scalar types this is more or less irrelevant anyway, since a scalar
has no substructure that can be altered in any interesting way.  I'm not
sure how hard we ought to work on making composites behave differently.
I think it's as likely to cause problems as solve them.
        regards, tom lane


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Review: listagg aggregate
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add on_perl_init and proper destruction to plperl [PATCH]