Re: Portability concerns over pq_sendbyte?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Portability concerns over pq_sendbyte?
Дата
Msg-id 20180627065149.tdczk7my43mekh7g@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Portability concerns over pq_sendbyte?  (Andres Freund <andres@anarazel.de>)
Ответы Re: Portability concerns over pq_sendbyte?  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Hi,

On 2018-06-14 13:25:30 -0700, Andres Freund wrote:
> On 2018-06-14 16:17:28 -0400, Tom Lane wrote:
> > Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > > How about not renaming the functions, but just change argument types?
> 
> Yea, I'm in favor of this. I don't think the 'u' in there would benefit
> us, and the cast from signed to unsigned is well defined, so it's safe
> to call the functions with signed input.

Nobody argued against, thus I've pushed a patch doing so.

Looking at surrounding code I found a few more oddities, but of older
vintage:
- pq_sendfloat4 uses an uint32 in the union, but float8 uses a int64.
- same with pq_getmsgfloat[48]
- pq_getmsgint64 returns a int64, should probably also be uint64

Given they're practially harmless I'm inclined to only fix them in
master?

Greetings,

Andres Freund


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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: postgresql_fdw doesn't handle defaults correctly
Следующее
От: Amit Langote
Дата:
Сообщение: Re: [HACKERS] advanced partition matching algorithm forpartition-wise join