Get status of connection (C)

Поиск
Список
Период
Сортировка
От zilch@home.se
Тема Get status of connection (C)
Дата
Msg-id 20010529114622.A12839@loony
обсуждение исходный текст
Список pgsql-general
I'm writing a pool manager to manage x connections to a pgsql postmaster.

The getConnection method has to check if the connection is still valid,
and try to reconnect if it ain't.

Do you guys have a good way of doing this?

Can I use PQstatus?

Should I make a little runCommand on it to try it out? Then what command?

If it's bad, should I run a PQfinish on it before reconnecting or not?

Thank you plenty!

---
Daniel Akerud

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

Предыдущее
От: Denis Gasparin
Дата:
Сообщение: Re: Kylix, dbexpress & PostgreSql
Следующее
От: "Karen Ellrick"
Дата:
Сообщение: Problems with new data location