Simulation output using libpq

From: "Daryl Shanley" <Daryl(dot)Shanley(at)newcastle(dot)ac(dot)uk>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Simulation output using libpq
Date: 2004-01-06 10:50:57
Message-ID: 3E0207605FF4864EBE508C1C634D698C0EF093@bond.ncl.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have some c code that writes results directly to a file as they're
produced during a simulation. I want to modify the code to write
directly to a postgres database using libpq. I think I could open a
connection and insert into the database with a transaction, commiting at
the end of the simulation. One problem with this approach is that if I
have a lot of simultaneous simulations running I may run into problems
with exceeding the maximum number of connections allowed. I would
welcome any advice

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris 2004-01-06 11:25:10 Re: Announce: Search PostgreSQL related resources
Previous Message Chris 2004-01-06 10:45:51 Re: [HACKERS] Announce: Search PostgreSQL related resources