Re: libpq compression (part 2)

Поиск
Список
Период
Сортировка
От Andrey Borodin
Тема Re: libpq compression (part 2)
Дата
Msg-id CAAhFRxj_MuHG3Hrn5SJah+dwGL22FZ1wSMCtZ=PNyfO1vMtb-w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: libpq compression (part 2)  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: libpq compression (part 2)
Список pgsql-hackers
On Tue, Nov 15, 2022 at 7:17 PM Justin Pryzby <pryzby@telsasoft.com> wrote:
>

Also I've found one more TODO item for the patch. Currently in
fe-connect.c patch is doing buffer reset:
conn->inStart = conn->inCursor = conn->inEnd = 0;
This effectively consumes butes up tu current cursor. However, packet
inspection is continued. The patch works because in most cases
following code will issue re-read of message. Coincidentally.
/* Get the type of request. */
if (pqGetInt((int *) &areq, 4, conn))
{
/* We'll come back when there are more data */
return PGRES_POLLING_READING;
}

But I think we need a proper
goto keep_going;
to start from the beginning of the message.


Thank you!

Best regards, Andrey Borodin.



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Standardizing how pg_waldump presents recovery conflict XID cutoffs
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Standardizing how pg_waldump presents recovery conflict XID cutoffs