[PATCH] Leading minus for negative time interval in ISO 8601

Поиск
Список
Период
Сортировка
От Mikhail Titov
Тема [PATCH] Leading minus for negative time interval in ISO 8601
Дата
Msg-id 9q0367bkf9b.fsf@gmx.us
обсуждение исходный текст
Ответы Re: [PATCH] Leading minus for negative time interval in ISO 8601  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello!

I'd like to propose a simple patch to allow for negative ISO 8601
intervals with leading minus, e.g. -PT1H besides PT-1H. It seems that
standard isn't quite clear on negative duration. However, lots of
software use leading minus and expect/generate intervals in such forms
making those incompatible with current PostgreSQL decoding code.

All patch is doing is making a note of a leading minus and negates pg_tm
components along with fractional seconds. No other behavior change is
introduced.

--
Mikhail

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Atomic operations within spinlocks
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Atomic operations within spinlocks