I'm using PostgreSQL 8.3+PostGIS 1.3 to store geospatial data on Ubuntu 8.04 Hardy.
This particular version of PostGIS has a bug when calculating a buffer() on very complex segments, which causes the query to take more and more memory until the entire machine gets stuck.
I'm looking for a PostgreSQL mechanism that can:
- Limit the memory consumption (and perhaps other resources) used by a specific query.
- Automatically stop queries whose execution time exceeds a certain threshold.
Any ideas?