Re: Extended Query Protocol Question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Extended Query Protocol Question
Дата
Msg-id 29363.1279034295@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Extended Query Protocol Question  (Greg <grigorey@yahoo.co.uk>)
Ответы Re: Extended Query Protocol Question  (Greg <grigorey@yahoo.co.uk>)
Список pgsql-novice
Greg <grigorey@yahoo.co.uk> writes:
> Well, portal name is�the same�for both bind and execute messages
> as for 2nd point: I tried�composing Parse, Bind and Execute in the
> same buffer (with Sync message ending each)�and then send data to
> the database as well as sending those messages one by one�and
> reading their response and still getting "portal does not exists"
> error when Execute message sent to the database.

Sync ends the transaction, if you haven't created a transaction block by
executing BEGIN.  It seems rather pointless to put more than one Sync
in an outgoing packet anyway.  Normally what you'd want is to send
Parse/Bind/Execute/Sync as one packet, because if the Parse or Bind
fails you don't want to try the Execute.

            regards, tom lane

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

Предыдущее
От: Greg
Дата:
Сообщение: Re: Extended Query Protocol Question
Следующее
От: Greg
Дата:
Сообщение: Re: Extended Query Protocol Question