An experimental connection pooling system using gearman and PHP.
more information here: http://gonzalo123.wordpress.com/2010/11/01/database-connection-pooling-with-php-and-gearman/
Simple queries. And a simple error handling:
```
include("../lib/Pool/Client.php");
include("../lib/Pool/Server.php");
include("../lib/Pool/Exception.php");
include("../lib/Pool/Server/Connection.php");
include("../lib/Pool/Server/Stmt.php");
use PoolClient;
$conn = Client::singleton()->getConnection(PoolConf::PG1);
$sql = "SELECT * FROM TEST.TBL1";
$stmt = $conn->prepare($sql);
$stmt->execute();
$data = $stmt->fetchall();
echo "count: " . count($data) . "";
try {
$sql = "SELECT * TEST.NONEXISTENTTABLE";
$stmt = $conn->prepare($sql);
$stmt->execute();
$data = $stmt->fetchall();
echo "
count: " . count($data) . "
";