PostgreSQL and PostGIS queries

Useful PostGIS & PostgreSQL queries (and other blocks & gists).

Visit the resource