Debian sarge, 2.6.8 kernel, Apache 2.0.52, PHP 4.3.9, MySQL 4.0.22.

Turns out exactly the same thing happens with postgresql - must be a PHP problem..

Rob