Re: Array assignment behavior (was Re: [ADMIN] Stored procedure array limits)

Поиск
Список
Период
Сортировка
От John D. Burger
Тема Re: Array assignment behavior (was Re: [ADMIN] Stored procedure array limits)
Дата
Msg-id CA0C32E2-2371-4297-83AD-2ED9A14E0513@mitre.org
обсуждение исходный текст
Ответ на Re: Array assignment behavior (was Re: [ADMIN] Stored procedure array limits)  (Casey Duncan <casey@pandora.com>)
Ответы Re: Array assignment behavior (was Re: [ADMIN] Stored procedure array limits)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
>> As of 8.2 we could allow assignment to
>> arbitrary positions by filling the intermediate positions with nulls.
>> The code hasn't actually been changed to allow that, but it's
>> something
>> we could consider doing now.
>
> At first blush, this strikes me as a bit too magical/implicit. Are
> there other languages where sequences behave similarly?

 > perl -e '@A = (1, 2, 3); print "@A\n"; $A[10] = 10; print "@A\n";'
1 2 3
1 2 3        10

- John D. Burger
   MITRE


В списке pgsql-general по дате отправления:

Предыдущее
От: "John D. Burger"
Дата:
Сообщение: Re: Expected accuracy of planner statistics
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: benchmark suite