POSTGRESQL comes with a variety of documentation. There is a general user guide, and specific guides for administrators and programmers. There is also a tutorial. These can be all found at:
http://www.postgresql.org/docs/index.html.