include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
+try {
+ $c->exec("SET lc_messages TO 'C'");
+} catch (pq\Exception $e) {
+ // no not fail if we are not superuser
+}
$x = new pq\Cancel($c);
-$c->execAsync("SELECT pg_sleep(2)");
+$c->execAsync("SELECT pg_sleep(10)");
$x->cancel();
["source_file"]=>
string(10) "postgres.c"
["source_line"]=>
- string(4) "2988"
+ string(4) "%d"
["source_function"]=>
string(17) "ProcessInterrupts"
}