> Is there any way of putting a hard limit on the amount of memory MySQL will use, causing the query to fail if it hits this limit?
you can use 'ulimit' to set resource limits before starting the mysql server, 'ulimit -a' will show you all available options and their current settings
> To give more detail about this: it appears as though calling the Buffer command on a set of 990 records containing polylines is the cause of the problem.
Sounds like a bug, i'd suggest you file a bug report about this on
http://bugs.mysql.com/ and attach a table dump and query reproducing the problem.
--
Hartmut Holzgraefe, MySQL Regional Support Manager EMEA
Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering