Re: [HACKERS] Refactoring of replication commands using printsimple

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [HACKERS] Refactoring of replication commands using printsimple
Дата
Msg-id CAB7nPqT2K4XFT1JgqufFBjsOc-NUKXg5qBDucHPMbk6Xi1kYaA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Refactoring of replication commands using printsimple  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] Refactoring of replication commands using printsimple  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Tue, Jan 31, 2017 at 11:59 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> Sorry, I have a little more nitpicking.

Thanks for the input.

> How about having
> printsimple() use pq_sendcountedtext() instead of pq_sendint()
> followed by pq_sendbytes(), as it does for TEXTOID?
>
> Other than that, this looks fine to me now.

pq_sendcountedtext() does some encoding conversion, which is why I
haven't used because we deal only with integers in this patch... Now
if you wish to switch to that I have really no arguments against.
-- 
Michael

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] sequence data type
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] logical decoding of two-phase transactions