Re: RFC C++ Interface - Mailing list pgsql-hackers

From Adriaan Joubert
Subject Re: RFC C++ Interface
Date
Msg-id 3A35167B.15FD6E6E@albourne.com
Whole thread Raw
In response to Re: RFC C++ Interface  (Randy Jonasz <rjonasz@click2net.com>)
List pgsql-hackers
Randy Jonasz wrote:
> 
> I appreciate your comments and would like to respond to your concerns.
> The API I sketched in my earlier e-mail is borrowed heavily from
> Rogue Wave's dbtools.h++ library.  I think it can be a very clean and
> elegant way of accessing a database.

Yes, this looks neat. At least it is an API design that has been
properly tested. We've been thinking along the same lines, and were
thinking of faking up a roguewave type API for postgres.

One thing I would like to see, which we have built into our own,
primitive, C++ interface, is support for binary data retrieval. For some
applications the savings are huge. 

I haven't thought very hard about how to do this: we do it by having a
perl script generate structures from the table definitions at compile
time, which works well in our case, but is not necessarily suitable for
a library. Code to copy the data into these structures is similarly
generated. Not sure whether roguewave have a better solution.

Good luck with it.

Adriaan


pgsql-hackers by date:

Previous
From: "Mikheev, Vadim"
Date:
Subject: RE: Re: CRC
Next
From: "Mikheev, Vadim"
Date:
Subject: RE: suggest remove of elog in xlog.c