Re: Proper query implementation for Postgresql driver
От | Shay Rojansky |
---|---|
Тема | Re: Proper query implementation for Postgresql driver |
Дата | |
Msg-id | CADT4RqD11D8PJtRvkQ71RkGmzd+s48pa=a8bbsZ-k8oEhyMX4g@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Proper query implementation for Postgresql driver (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
Thanks guys, that makes perfect sense to me...<span></span><br /><br />Am Sonntag, 28. September 2014 schrieb Tom Lane :<br/><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Marko Tiikkaja<<a href="javascript:;">marko@joh.to</a>> writes:<br /> > On 9/28/14, 11:53 AM, Shay Rojansky wrote:<br/> >> [ complaint about multiple round trips in extended protocol ]<br /><br /> > You don't have to domultiple round-trips for that; you can just send<br /> > all the messages in one go. See how e.g. libpq does it inPQexecParams().<br /><br /> Right. The key thing to understand is that after an error, the server<br /> skips messagesuntil it sees a Sync. So you can send out Parse, Bind,<br /> Execute, Sync in one packet and not have to worry thatthe server will<br /> attempt to execute a query that failed parsing or whatever.<br /><br /> regards, tom lane<br /></blockquote>
В списке pgsql-hackers по дате отправления: