Skip site navigation (1) Skip section navigation (2)

Re: libpq++ and threads

From: "Tim Barnard" <tbarnard(at)povn(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: libpq++ and threads
Date: 2002-02-26 18:56:18
Message-ID: 018001c1bef7$469a4740$ (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-interfaces
Incidently, there evidently are problems with libpq++ (see past
discussions). You might want to look at using libpqxx, available from As far as I know libpq++ is not
being actively maintained, whereas libpqxx is.


----- Original Message -----
From: <jtv(at)xs4all(dot)nl>
To: <gtm(at)oracom(dot)com>
Cc: <pgsql-interfaces(at)postgresql(dot)org>
Sent: Tuesday, February 26, 2002 9:36 AM
Subject: Re: libpq++ and threads

> > I am new to libpq++ so if this was asked already I am sorry (I have
> > searched the logs).  I have written a threaded app which I am moving to
> > interface with a postgres database.  Tha app receives messages and
> > passes each message to a thread with inserts or updates the database.
> > I have one pgDatabase object which all the threads use.  Can these
> > threads all access that object or do I need to syncronize them?
> That's strictly a libpq issue; libpq++ builds on top of that, but doesn't
> add any threading problems on top of that that I'm aware of.  So if it
> works under libpq, it's going to work on libpq++ and vice versa.  (Unless
> I'm very much mistaken, of course.)
> Jeroen
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

pgsql-interfaces by date

Next:From: Jeroen T. VermeulenDate: 2002-02-27 00:04:28
Subject: libpqxx: improved self-test
Previous:From: jtvDate: 2002-02-26 17:36:10
Subject: Re: libpq++ and threads

pgsql-general by date

Next:From: Peter PeltonenDate: 2002-02-26 19:06:39
Subject: GRANT question
Previous:From: Marc G. FournierDate: 2002-02-26 18:46:27
Subject: Re:

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group