Re: FE/BE protocol oddity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FE/BE protocol oddity
Дата
Msg-id 17688.994444416@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: FE/BE protocol oddity  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: FE/BE protocol oddity  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> I guess there is sort of a point there.  So I'm leaning towards adding a
> "startup complete" flag somewhere in PGconn and simply fix up
> closePGconn().

I think you can use the conn->status field; you shouldn't need a new
flag, just test whether status is CONNECTION_OK or not.

> Seriously, in the worst case we'll get EINVAL.

So you'll just ignore an error?  Okay, that'll probably work.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Rule action ordering
Следующее
От: Gunnar Rønning
Дата:
Сообщение: Re: Database Users Management and Privileges