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