mod_libpq is an Apache 1.3 Web server module which
maintains persistent connections to one or more
PostgreSQL databases, eliminating the need for
cumbersome middleware "glue". Millions of complex
pages can be fully or partially pre-rendered,
stored in a database, and then served directly to
the Web. One database can be associated with the
main Apache server and an additional database can
be associated with each virtual host defined in
httpd.conf. Requests are converted into a pair of
user configurable queries which are sent directly
to the database via PostgreSQL's libpq API. The
first query processes the request headers and the
second query returns the document content.