Connection pooling with C and libpq

Поиск
Список
Период
Сортировка
От Kassu Valtakari
Тема Connection pooling with C and libpq
Дата
Msg-id 20010126151118.C23535@sunhalle42.informatik.tu-muenchen.de
обсуждение исходный текст
Список pgsql-general
Hei!

How do I do the connection pooling with libpq? I'm trying to modify
a radius server to fork or thread and pick a connection from the pool
and in that way be able to store 100..500 small records in a second
into postgresql.
I can create a global array of connections, but how is it done after
that? I'm sure there's people who think it's trivial and simple, but I
also think that seeing someone's ready tested code helps me a lot.

Also an example with threads or forks in the code could be interesting.
--
--  Kassu Valtakari, kassu at iki.fi, +49 89 722 43448
--  Quidquid latine dictum sit, altum viditur

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

Предыдущее
От: Gilles DAROLD
Дата:
Сообщение: Re: Connection pooling
Следующее
От: Tom Lane
Дата:
Сообщение: Re: vacuum