Re: Proposal: new function array_init - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Proposal: new function array_init
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Proposal: new function array_init  (Decibel! <[email protected]>)
Responses Re: Proposal: new function array_init
List pgsql-hackers
2008/6/4 Decibel! <[email protected]>:
> On Jun 2, 2008, at 11:46 AM, Tom Lane wrote:
>>
>> * Should the fill value be the first parameter instead of the last?
>
>
> +1. The other way just seems weird, at least to me.

can you write reason?

I put fill value on end, because it is like default value:

array_set(array[2,2]);
array_set(array[2,2], 0);
array_set(array[2,2],array[1,1]);
array_set(array[2,2],array[1,1], 0); - and it's analogy to memset fce
etc set(where, value);

Pavel

> --
> Decibel!, aka Jim C. Nasby, Database Architect  [email protected]
> Give your computer some brain candy! www.distributed.net Team #1828
>
>
>


pgsql-hackers by date:

Previous
From: Decibel!
Date:
Subject: Re: Proposal: new function array_init
Next
From: Decibel!
Date:
Subject: Re: Overhauling GUCS