Simulation output using libpq - Mailing list pgsql-general

From Daryl Shanley
Subject Simulation output using libpq
Date
Msg-id 3E0207605FF4864EBE508C1C634D698C0EF093@bond.ncl.ac.uk
Whole thread Raw
Responses Re: Simulation output using libpq  (Bruno Wolff III <bruno@wolff.to>)
List 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

pgsql-general by date:

Previous
From: Chris
Date:
Subject: Re: [HACKERS] Announce: Search PostgreSQL related resources
Next
From: sam@edup.tudelft.nl (Sam)
Date:
Subject: create template database