Ashutosh Bapat <ashutosh.ba...@2ndquadrant.com> writes: > On Wed, 18 Mar 2020 at 08:18, movead...@highgo.ca <movead...@highgo.ca> > wrote: >> if we change return type of all those functions to int64, we won't need >> this cast. >> I change the 'encode' function, it needs an int64 return type, but keep >> other >> functions in 'pg_encoding', because I think it of no necessary reason.
> Ok, let's leave it for a committer to decide. If I'm grasping the purpose of these correctly, wouldn't Size or size_t be a more appropriate type? And I definitely agree with changing all of these APIs at once, if they're all dealing with the same kind of value. regards, tom lane