Re: is ErrorResponse possible on Sync?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: is ErrorResponse possible on Sync?
Дата
Msg-id 3011898.1642010704@sss.pgh.pa.us
обсуждение исходный текст
Ответ на is ErrorResponse possible on Sync?  (Andrei Matei <andreimatei1@gmail.com>)
Ответы Re: is ErrorResponse possible on Sync?  (Andrei Matei <andreimatei1@gmail.com>)
Список pgsql-hackers
Andrei Matei <andreimatei1@gmail.com> writes:
> I've got a question about the wire protocol; the relevant text in the docs
> seems a bit ambiguous to me. If the processing of a Sync message fails
> (e.g. because the commit of the current transaction fails), is the backend
> allowed to respond with an ErrorResponse, in addition to the ReadyForQuery
> message? Or, does the backend swallow the error, and return only the
> ReadyForQuery (I hope not).

Uh ... I don't think Sync itself can fail.  Any ErrorResponse you see
there is really from failure of some prior command.  The Sync is really
delimiting how much stuff you'd like to skip in case of a failure.
Basically this is to allow pipelining of commands, with the ability to
discard later commands if an earlier one fails.

But in any case, no, Sync would not suppress an error message if
one is needed.

            regards, tom lane



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

Предыдущее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: is ErrorResponse possible on Sync?
Следующее
От: Andrei Matei
Дата:
Сообщение: Re: is ErrorResponse possible on Sync?