Peter Korsgaard <jacmet(at)control(dot)auc(dot)dk> writes:
> I have been browsing a bit around the develop corner at postgresql.org
> and looking at the c client library, but I haven't been able to find
> any information about the protocol used between the postgres database and
> the clients,
See the developer's guide at
http://www.postgresql.org/devel-corner/docs/postgres/
especially chapter 4,
http://www.postgresql.org/devel-corner/docs/postgres/protocol.htm
regards, tom lane