Re: Populating array of composite datatype

From: Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
To: Chris Travers <chris(dot)travers(at)gmail(dot)com>
Cc: Sameer Thakur <samthakur74(at)gmail(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Populating array of composite datatype
Date: 2013-08-07 11:02:27
Message-ID: CA+h6AhiGDvqFmt4BfJwChyjXnuq7jf27=xagfzy2n4G_=6dyHg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Wed, Aug 7, 2013 at 3:53 AM, Raghavendra <
> raghavendra(dot)rao(at)enterprisedb(dot)com> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2013-08-07 11:29:05 Re: Staging Database
Previous Message Chris Travers 2013-08-07 10:56:34 Re: Populating array of composite datatype