Re: DROP TYPE/DROP DOMAIN

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: DROP TYPE/DROP DOMAIN
Date: 2003-08-17 04:28:25
Message-ID: 200308170428.h7H4SPP08949@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Added to TODO:

* Add ALTER DOMAIN, AGGREGATE, CONVERSION, SEQUENCE ... OWNER TO

---------------------------------------------------------------------------

Andreas Pflug wrote:
> Tom Lane wrote:
>
> >"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
> >
> >
> >>But should the CREATE DOMAIN manual page refer to DROP TYPE? Should DROP
> >>DOMAIN be able to drop a type?
> >>
> >>
> >
> ><shrug> Don't care much about either of those; the current state of
> >affairs is fine with me.
> >
> >
> >
> >>What happens in the future if for some
> >>reason we need to add some special case to dropDomain() and the coder
> >>neglects to add it to dropType()?
> >>
> >>
> >
> >That would be a bug without regard for any of this discussion, because
> >both RemoveDomain and RemoveType are simply user interface routines;
> >they do no actual work. If someone put actual work into either, it'd
> >be wrong because it would not get done during a cascaded drop.
> >
> >
> >
>
> While implementing the new ALTER DOMAIN ... OWNER TO stuff, I found that
> there's no corresponding command for TYPE (and ALTER DOMAIN will reject
> a TYPE). IMHO this should go on TODO for symmetry reasons. And how about
> AGGREGATE, CONVERSION, SEQUENCE? (the latter can be changed by ALTER TABLE).
>
>
> Regards,
> Andreas
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2003-08-17 04:39:15 Re: "truncate all"?
Previous Message Bruce Momjian 2003-08-17 04:18:20 Re: "truncate all"?