Re: BUG #16953: OOB access while converting "interval" to char

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #16953: OOB access while converting "interval" to char
Дата
Msg-id YG7q8YcvFcXCAbAH@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #16953: OOB access while converting "interval" to char  (Julien Rouhaud <rjuju123@gmail.com>)
Ответы Re: BUG #16953: OOB access while converting "interval" to char  (Julien Rouhaud <rjuju123@gmail.com>)
Список pgsql-bugs
On Thu, Apr 08, 2021 at 07:04:03PM +0800, Julien Rouhaud wrote:
> I'm fine with it too, although I'd probably go with [-13, 13] just to make sure
> that there's isn't silly off-by-one mistake.

Also, I guess that you'd just want to compile twice a modulo based on
MONTHS_PER_YEAR to get the correct positive position in each array.

> I'll just wait a bit to see if anyone else has any opinion on whether -1 month
> should be January or December.

Sure.  If you can send an updated patch, that would be great.
--
Michael

Вложения

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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: BUG #16953: OOB access while converting "interval" to char
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16954: After install postgresql.service activates but does not activate postgresql@11-main.service