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$a519af3f@hartcomm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

Incidently, there evidently are problems with libpq++ (see past
discussions). You might want to look at using libpqxx, available from
http://members.ams.chello.nl/j.vermeulen31/. As far as I know libpq++ is not
being actively maintained, whereas libpqxx is.

Tim

----- 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

Browse pgsql-general by date

  From Date Subject
Next Message Peter Peltonen 2002-02-26 19:06:39 GRANT question
Previous Message Marc G. Fournier 2002-02-26 18:46:27 Re: archives.postgresql.org

Browse pgsql-interfaces by date

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