Re: useless RangeIOData->typiofunc

2020-03-05 Thread Alvaro Herrera
On 2020-Mar-05, Tom Lane wrote: > Alvaro Herrera writes: > > Thanks -- ISTM it makes more sense to put the FmgrInfo before the > > typioparam too: > > > typedef struct RangeIOData > > { > > TypeCacheEntry *typcache;/* range type's typcache entry */ > > FmgrInfoproc;/*

Re: useless RangeIOData->typiofunc

2020-03-05 Thread Tom Lane
Alvaro Herrera writes: > Thanks -- ISTM it makes more sense to put the FmgrInfo before the > typioparam too: > typedef struct RangeIOData > { > TypeCacheEntry *typcache;/* range type's typcache entry */ > FmgrInfoproc;/* element type's I/O function */ > Oid

Re: useless RangeIOData->typiofunc

2020-03-05 Thread Alvaro Herrera
On 2020-Mar-04, Tom Lane wrote: > Hm, I'm not sure that really lessens the cognitive load any, but > if you do commit this please fix the dangling reference you left > in the nearby comment: > > { > TypeCacheEntry *typcache; /* range type's typcache entry */ > - Oid typiofunc;

Re: useless RangeIOData->typiofunc

2020-03-04 Thread Tom Lane
Alvaro Herrera writes: > I noticed while going over the multirange types patch that it adds a > pointless typiofunc cached OID to a struct used for I/O functions' > fn_extra. It seems to go completely unused, so I checked range types > (which this was cribbed from) and indeed, it is completely un

Re: useless RangeIOData->typiofunc

2020-03-04 Thread Paul Jungwirth
On 3/4/20 1:57 PM, Alvaro Herrera wrote: I noticed while going over the multirange types patch that it adds a pointless typiofunc cached OID to a struct used for I/O functions' fn_extra. It seems to go completely unused, so I checked range types (which this was cribbed from) and indeed, it is co