Wrong usage of pqMsg_Close message code?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Wrong usage of pqMsg_Close message code?
Дата
Msg-id CAFj8pRAMDCJXjnwiCkCB1yO1f7NPggFY8PwwAJDnugu-Z2G-Cg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Wrong usage of pqMsg_Close message code?  (Aleksander Alekseev <aleksander@timescale.com>)
Список pgsql-hackers
Hi

I workin with protocol and reading related code.

I found in routine EndCommand one strange thing

void
EndCommand(const QueryCompletion *qc, CommandDest dest, bool force_undecorated_output)
{
<-->char<--><-->completionTag[COMPLETION_TAG_BUFSIZE];
<-->Size<--><-->len;

<-->switch (dest)
<-->{
<--><-->case DestRemote:
<--><-->case DestRemoteExecute:
<--><-->case DestRemoteSimple:

<--><--><-->len = BuildQueryCompletionString(completionTag, qc,
<--><--><--><--><--><--><--><--><--><--><--> force_undecorated_output);
<--><--><-->pq_putmessage(PqMsg_Close, completionTag, len + 1);

<--><-->case DestNone:

There is message PqMsgClose, but this should be used from client side. Here should be used PqMsg_CommandComplete instead?

Regards

Pavel

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Strange presentaion related to inheritance in \d+
Следующее
От: Aleksander Alekseev
Дата:
Сообщение: Re: [PATCH v1] PQputCopyEnd never returns 0, fix the inaccurate comment