1--TEST--
2PostgreSQL pg_get_notify() functions
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7// optional functions
8
9include('config.inc');
10
11$db = pg_connect($conn_str);
12pg_query($db, 'LISTEN test_msg');
13pg_query($db, 'NOTIFY test_msg');
14
15$msg = pg_get_notify($db);
16
17isset($msg['message'],$msg['pid']) ? print 'OK' : print 'NG';
18?>
19--EXPECT--
20OK
21