Search Postgresql Archives

Array in a Type

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

 



I've created a type that contains a few types and an array. But when
I try to create an array from that in a table, I get a '"type[]" does
not exist' error. The manual says that the array type is configured
automatically when a type is created, but this doesn't appear to be
the case. Am I missing something?

widget=# \d network_interfaces;
Composite type "public.network_interfaces"
    Column    |          Type          
--------------+------------------------
 manufacturer | integer
 chipset      | character varying(128)
 ports        | integer
 speeds       | integer[]

widget=# create table box(id int, network network_interfaces[]);
ERROR: type "network_interfaces[]" does not exist

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux