Re: appendBinaryStringInfo stuff

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: appendBinaryStringInfo stuff
Дата
Msg-id 783a4edb-84f9-6df2-7470-2ef5ccc6607a@enterprisedb.com
обсуждение исходный текст
Ответ на appendBinaryStringInfo stuff  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: appendBinaryStringInfo stuff
Список pgsql-hackers
On 19.12.22 07:13, Peter Eisentraut wrote:
> Also, the argument type of appendBinaryStringInfo() is char *.  There is 
> some code that uses this function to assemble some kind of packed binary 
> layout, which requires a bunch of casts because of this.  I think 
> functions taking binary data plus length should take void * instead, 
> like memcpy() for example.

I found a little follow-up for this one: Make the same change to 
pq_sendbytes(), which is a thin wrapper around appendBinaryStringInfo(). 
  This would allow getting rid of further casts at call sites.

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Exit walsender before confirming remote flush in logical replication
Следующее
От: Jeroen Vermeulen
Дата:
Сообщение: Re: libpq: PQgetCopyData() and allocation overhead