Re: OBJECT_ATTRIBUTE is useless (or: ALTER TYPE vs ALTER TABLE for composites)

From: Kouhei Kaigai <kaigai(at)ak(dot)jp(dot)nec(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: OBJECT_ATTRIBUTE is useless (or: ALTER TYPE vs ALTER TABLE for composites)
Date: 2015-02-24 04:00:25
Message-ID: 9A28C8860F777E439AA12E8AEA7694F8010B67E0@BPXM15GP.gisp.nec.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Kouhei Kaigai wrote:
> > Please see check_object_ownership(). It checks relation's ownership
> > if OBJECT_COLUMN, however, type's ownership is the correct check if
> > OBJECT_ATTRIBUTE.
>
> Hmm. Is there any case where the two are different?
>
AlterObjectTypeCommandTag()?

OBJECT_ATTRIBUTE makes "ALTER TYPE" tag, but "ALTER COLUMN" tag is
made with OBJECT_COLUMN.

Above two cases are all I could found.

Thanks,
--
NEC OSS Promotion Center / PG-Strom Project
KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2015-02-24 04:09:54 Re: Abbreviated keys for Numeric
Previous Message Alvaro Herrera 2015-02-24 03:58:11 Re: OBJECT_ATTRIBUTE is useless (or: ALTER TYPE vs ALTER TABLE for composites)