PostgreSQL 9.0 Reference Manual - Volume 2: Programming Guide
For each copy of this manual sold 1 USD is donated to the PostgreSQL project by the publisher, Network Theory Ltd.