Re: PQsetdbLogin bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQsetdbLogin bug?
Дата
Msg-id 5041.990800771@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PQsetdbLogin bug?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Ответы Re: PQsetdbLogin bug?  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-hackers
Tatsuo Ishii <t-ishii@sra.co.jp> writes:
> 2) check if the status of handle returned PQsetdbLogin is
>    CONNECTION_BAD closePGconn. if so, do not call pqPuts (and
>    pqFlush)

I like this approach.  The other way, you'd have to be sure that all
failure paths close the socket before returning; even if you get it
right today, somebody will break it again in future.  The sending of
the final 'X' is really quite optional anyhow, so I'd say it's fine
not to do it when there's any question about whether it's safe.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug#98643: plpgsql SELECT INTO causes trouble when assignment impossible (fwd)
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: GiST index on data types that require compression