Re: Date-Time dangling unit fix - Mailing list pgsql-hackers

From Joseph Koshakow
Subject Re: Date-Time dangling unit fix
Date
Msg-id CAAvxfHc8xy42wX8Xk7RTLee_O16ui4RfT7vkjfnN+ERgpaHV+g@mail.gmail.com
Whole thread Raw
In response to Re: Date-Time dangling unit fix  (Joseph Koshakow <koshy44@gmail.com>)
Responses Re: Date-Time dangling unit fix  (Joseph Koshakow <koshy44@gmail.com>)
List pgsql-hackers
I just found another class of this bug that the submitted patch does
not fix. If the units are at the beginning of the string, then they are
also ignored. For example, `date 'm d y2020m11d3'` is also valid. I
think the fix here is to check and make sure that ptype is 0 before
reassigning the value to a non-zero number. I'll send an updated patch
with this tonight.

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: sendFileWithContent() does not advance the source pointer
Next
From: Masahiko Sawada
Date:
Subject: Re: [PoC] Improve dead tuple storage for lazy vacuum