Re: PQexecPrepared() behavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQexecPrepared() behavior
Дата
Msg-id 13633.1251648588@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PQexecPrepared() behavior  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
> Strange thing is, it seems PQexecPrepared() sends B(bind), Describe,
> Execute and Sync at once without checking the result of Bind
> message. Is this leagal from a point of view of the frontend/backend
> protocol?

Yes.  If we failed to do this then every query would involve multiple
network round-trips, which would be catastrophic for performance.
The Sync message is used to make error recovery well-defined.
        regards, tom lane


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: clang's static checker report.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: drop tablespace error: invalid argument