Search Postgresql Archives

Re: Populating array of composite datatype

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

 




On Wed, Aug 7, 2013 at 3:53 AM, Raghavendra <raghavendra.rao@xxxxxxxxxxxxxxxx> wrote:

postgres=# insert into foo values (array[row(1,2)::abc]);


Also because all array members must be of the same db type, you can:

insert into foo values (array[row(1,2)]::abc[]).  This can be helpful if you have more than one array member. 

Agreed. Thank you Chris.

--Raghav

[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