Re: DecodeInterval fixes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: DecodeInterval fixes
Date
Msg-id 1449938.1688771624@sss.pgh.pa.us
Whole thread Raw
In response to Re: DecodeInterval fixes  (Jacob Champion <jchampion@timescale.com>)
Responses Re: DecodeInterval fixes
Re: DecodeInterval fixes
List pgsql-hackers
Jacob Champion <jchampion@timescale.com> writes:
> Hi Joe, here's a partial review:
> On Sun, Apr 9, 2023 at 5:44 PM Joseph Koshakow <koshy44@gmail.com> wrote:
>> 1) Removes dead code for handling unit type RESERVE.

> Looks good. From a quick skim it looks like the ECPG copy of this code
> (ecpg/pgtypeslib/interval.c) might need to be updated as well?

The ECPG datetime datatype support code has been basically unmaintained
for years, and has diverged quite far at this point from the core code.
I wouldn't expect that a patch to the core code necessarily applies
easily to ECPG, nor would I expect somebody patching the core to bother
trying.

Perhaps modernizing/resyncing that ECPG code would be a worthwhile
undertaking, but it'd be a mighty large one, and I'm not sure about
the size of the return.  In the meantime, benign neglect is the policy.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: MERGE ... RETURNING
Next
From: Michael Paquier
Date:
Subject: Re: Add more sanity checks around callers of changeDependencyFor()