Re: strange system columns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Colton A Smith <smith@xxxxxxxxxx> writes:
> SELECT attname, typname, attnum
>                     FROM pg_attribute INNER JOIN pg_type
>                       ON pg_attribute.atttypid = pg_type.typelem
>                         WHERE pg_attribute.attrelid = $oid (derived above)
>                               AND NOT attisdropped;

I think you meant to join to pg_type.oid, not pg_type.typelem.

			regards, tom lane


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux