The fix for bug T114806 doesn't quote timestamps it sends directly to the database (i.e. not in bind variables).
For reasons I don't understand, this causes 'php phpunit.php includes/ImportLinkCacheIntegrationTest.php' to blow up spectacularly when used against PostgreSQL, consuming all memory and crashing.
A simple addQuotes fixes that problem, but it would be nice to fix the problem with phpunit that causes infinite loops with memory allocation, too.