Re: Re: libpq++ - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Re: libpq++
Date
Msg-id 818.988918936@sss.pgh.pa.us
Whole thread Raw
In response to libpq++  ("J. T. Vermeulen" <jtv@cistron-office.nl>)
Responses Re: Re: libpq++
List pgsql-interfaces
Justin Banks <justinb@tricord.com> writes:
> You're right - this only works because the shared connections all
> occur in the same address space. It doesn't buy you anything between
> applications, only inside an application. The problem is that there's
> no way for different instantiations of classes inheriting
> database-ness from the PgDatabase class to share a PGconn* unless the
> PgDatabase class provides a way for different instantiations to know
> that existing connections are available.

And what's wrong with a static class variable for that purpose?
The shmem segment looks like the hardest possible way to get the
same result.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: libpq++
Next
From: Tom Lane
Date:
Subject: Re: Re: libpq++