Postgres Guide¶

We here are very big fans of Postgres as a database and believe it is often the best database for the job. For many though, working with and maintaining Postgres involves a steep learning curve. This guide is designed as an aid for beginners and experienced users to find specific tips and explore tools available within Postgres.

If you want to take the quick & painless approach instead, there are great services available such as Heroku Postgres.

Note

This still is still under rapid development. Please send any suggestions (or requests) to craig.kerstiens@gmail.com. If you’re interested in helping to maintain this document please hop over to github and contribute. To follow updates to the site check out our twitter account PostgresGuide.

Some History¶

Postgres has gotten much more attention in recent years. It has accelerated its pace, meanwhile other RDMS’s have slowed in releases. Though Postgre SQL/PostgreSQL/Postgres has a very long history in databases, with its very name coming from one of the earliest databases Ingres (Post ingres = Postgres) and its own implementation beginning in 1986.

Guide:

  • Setup
    • Installing Postgres
    • Users
  • General SQL
    • Querying Data
    • Joins
    • Views
  • Utilities
    • Backup and Restore
    • Copy
    • Psql
  • Postgres Specific Tips
    • Working with Dates and Times
    • Window Functions
  • Postgres Performance
    • Indexes
    • Execution Plan
    • Conditional Constraints
  • Postgres the Sexy Parts
    • HStore
    • Arrays
    • Enumerated Data Types

Postgres Guide

Postgres Guide is intended to highlight best practices and great features that exist within Postgres. If new to databases or specifically Postgres hopefully you find content useful.

Other Resources

  • Postgres High Performance
  • Beginning Databases with PostgreSQL
  • SQL and Relational Theory
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.