tags:

views:

135

answers:

5

I'm trying to find open source applications using PostgreSQL that are written in C/C++ so I can study them. A few open source projects using PostgreSQL are Evergreen ILS, SpamAssassin, and pgpool. However, Evergreen and SpamAssassin are written in Perl, and pgpool (written in C) is a replication tool, not a typical application. Moreover, I looked at the SQL code in Evergreen, and it is quite voluminous and complicated.

Hence, I'm looking for one or more applications using PostgreSQL, preferably those that are somewhat trivial (but not too trivial).

+1  A: 

seen libpqxx? try asking on its mailing list (but scour their wiki first)

http://pqxx.org/development/libpqxx

just somebody
Thanks. However, libpqxx is a binding, not an application, meaning its code might not really demonstrate how to use libpq in the context of business logic.
Joey Adams
yup. that's why i didn't simply point you at *it*. it's a c++ library to access postgresql, you're bound to find a few oss applications mentioned in the wiki and/or mailing list archives.
just somebody
+1  A: 

pgAdmin is written using c++ using wxwidgets.

Jordan S. Jones
+1  A: 

how about pgAdmin 3 ?

Also, you may find Qt4 a very easy way interact with databases programming in C++. http://doc.trolltech.com/4.6-snapshot/sql-programming.html

dschulz
A: 

Have you searched through the projects at http://pgfoundry.org ?

rycamor
A: 

Two examples that are open-source:

jtv