-new pq\Event($c, pq\Event::NOTICE, function($c, $notice) {
- echo "Got notice: $notice";
+$c->exec("DROP TABLE IF EXISTS test CASCADE");
+$c->exec("SET client_min_messages TO NOTICE");
+$c->on(pq\Connection::EVENT_NOTICE, function($c, $notice) {
+ echo "Got notice: $notice\n";