Re: OBJECT_ATTRIBUTE is useless (or: ALTER TYPE vs ALTER TABLE for composites) - Mailing list pgsql-hackers

From Kouhei Kaigai
Subject Re: OBJECT_ATTRIBUTE is useless (or: ALTER TYPE vs ALTER TABLE for composites)
Date
Msg-id 9A28C8860F777E439AA12E8AEA7694F8010B67E0@BPXM15GP.gisp.nec.co.jp
Whole thread Raw
In response to Re: OBJECT_ATTRIBUTE is useless (or: ALTER TYPE vs ALTER TABLE for composites)  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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@ak.jp.nec.com>

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: OBJECT_ATTRIBUTE is useless (or: ALTER TYPE vs ALTER TABLE for composites)
Next
From: Andrew Gierth
Date:
Subject: Re: Abbreviated keys for Numeric