From: | Kassu Valtakari <valtakar(at)informatik(dot)tu-muenchen(dot)de> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Connection pooling with C and libpq |
Date: | 2001-01-26 15:11:19 |
Message-ID: | 20010126151118.C23535@sunhalle42.informatik.tu-muenchen.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-01-26 15:20:17 | Re: The type int8 and the use of indexes |
Previous Message | Tom Lane | 2001-01-26 15:10:54 | Re: vacuum |