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).
apt-cache rdepends libpq5in Ubuntu and got a few results. The most promising one I saw was dovecot. However, like many others, dovecot has its own database library rather than using libpq inline. I'm thinking I would be better off doing what many other projects do and use a wrapper instead of libpq (PostgreSQL's C API).