Обсуждение: What is the difference between creating a type, and a domain ?

Поиск
Список
Период
Сортировка

What is the difference between creating a type, and a domain ?

От
stan
Дата:
Subject basically says it all.

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                        -- Benjamin Franklin



Re: What is the difference between creating a type, and a domain ?

От
Tom Lane
Дата:
stan <stanb@panix.com> writes:
> Subject basically says it all.

A domain is a kind of type ... but it's not the only kind of type.

https://www.postgresql.org/docs/current/domains.html

            regards, tom lane