Re: [GENERAL] What's the benefit (or usage scenario) of a "typed table"?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] What's the benefit (or usage scenario) of a "typed table"?
Дата
Msg-id 32103.1483202769@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [GENERAL] What's the benefit (or usage scenario) of a "typed table"?  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
Thomas Kellerer <spam_eater@gmx.net> writes:
> I recently stumbled over "typed tables" in Postgres
> (there were several questions containing this on stackoverflow recently)

>      create type some_type as (id integer, data text);
>      create table some_table of some_type;

> I wonder what the benefit of a typed table is and when this would be useful?

AFAIK we implemented that only because it's in the SQL standard.
Otherwise you might as well use, for instance, CREATE TABLE ... LIKE.

            regards, tom lane


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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: [GENERAL] What's the benefit (or usage scenario) of a "typed table"?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] What's the benefit (or usage scenario) of a "typedtable"?