Re: Possible marginally-incompatible change to array subscripting

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Possible marginally-incompatible change to array subscripting
Дата
Msg-id 4310.1450836560@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Possible marginally-incompatible change to array subscripting  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2015-12-22 18:34 GMT+01:00 Robert Haas <robertmhaas@gmail.com>:
>> On Tue, Dec 22, 2015 at 11:51 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> ISTM that if we'd had Yury's code in there from the beginning, what we
>>> would define this as meaning is "a[3:4][:5]", ie the implied range runs
>>> from whatever the array lower bound is up to the specified subscript.

>> Gosh, our arrays are strange.  I would have expected a[3:4][5] to mean
>> a[3:4][5:5].

> exactly,

Since it's not clear that we've got consensus on doing anything
differently, I've adjusted the current patch to preserve the existing
behavior here (and added some regression tests showing that behavior).
If we do decide to change it, it'd be more appropriate to make that
change in a separate commit, anyway.
        regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Freeze avoidance of very large table.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Some questions about the array.