Re: DROP TYPE/DROP DOMAIN

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: DROP TYPE/DROP DOMAIN
Date: 2003-08-04 14:41:51
Message-ID: Pine.LNX.4.56.0308041640570.915@krusty.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > Tom Lane writes:
> >> Why not? A domain *is* a type, by any reasonable test.
>
> > According to that logic, a view is a table, but we still require DROP VIEW
> > to drop a view.
>
> No, a view is not a table. Try putting an index or trigger on it.

According to that logic, a domain is not a type. Try putting a check
constraint on it.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2003-08-04 14:43:33 Re: "truncate all"?
Previous Message Rod Taylor 2003-08-04 14:28:22 Re: "truncate all"?