krzysztof(dot)heim(at)gmail(dot)com writes:> I have base table A with column type integer array.> I also have table B derived from table A.
> When I query pg_attribute for table A, attndims shows 1 (correct), when I do> same query for table B - attndims shows 0 for same column.
> Is it a bug, or it's desired behavior (since it's a derived column).
We don't really care. attndims is a historical leftover and should neverbe relied on for any semantically significant purpose.
TBH, my inclination would be to remove the column altogether rather than"fix" this.
regards, tom lane