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

Started by stanover 6 years ago2 messagesgeneral
Jump to latest
#1stan
stanb@panix.com

Subject basically says it all.

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: stan (#1)
Re: What is the difference between creating a type, and a domain ?

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