Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write
От
Higuchi, Daisuke
Тема
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write
Дата
Msg-id
1803D792815FC24D871C00D17AE95905AC9663@g01jpexmbkw24
Ответ на
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write (Ashutosh Bapat)
Список
Дерево обсуждения
[HACKERS] [Bug fix] PQsendQuery occurs error when target_session_attrs isset to read-write "Higuchi, Daisuke" <higuchi.daisuke@jp.fujitsu.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write "Higuchi, Daisuke" <higuchi.daisuke@jp.fujitsu.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write "Higuchi, Daisuke" <higuchi.daisuke@jp.fujitsu.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write "Higuchi, Daisuke" <higuchi.daisuke@jp.fujitsu.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [Bug fix] PQsendQuery occurs error whentarget_session_attrs is set to read-write Michael Paquier <michael.paquier@gmail.com>
From: Ashutosh Bapat [mailto:ashutosh.bapat@enterprisedb.com] >Sorry, attached wrong patch. Here's the right one. > The code expects that there will be two PQgetResult() calls required. > One to fetch the result of SHOW command and the other to extract NULL. > If we require more calls or unexpected results, we should throw and > error. The patch just checks the first result and consumes the > remaining without verifying them. Also, it looks like we can not clear > result of PQgetResult() before using the values or copying them > somewhere else [1]. Here's updated patch which tries to do that. > Please let me know if this looks good to you. Oh, I had a basic misunderstanding. Thank you for correct me. There is no problem in the patch you attached. I agree with you. Regards, Daisuke, Higuchi
В списке pgsql-hackers по дате отправления
От: Pavan Deolasee
Дата:
От: Michael Paquier
Дата: