Pdo\Pgsql::getNotify

Get asynchronous notification

&reftitle.description; public ``array``false```Pdo\Pgsql::getNotify` `int` `fetchMode` PDO::FETCH_DEFAULT `int` `timeoutMilliseconds` 0

Returns a result set representing a pending asynchronous notification.

&reftitle.parameters;

`fetchMode`

- The format the result set should be returned as, one of the following constants:

  - `PDO::FETCH_DEFAULT`
  - `PDO::FETCH_BOTH`
  - `PDO::FETCH_ASSOC`
  - `PDO::FETCH_NUM`

`timeoutMilliseconds`

- The length of time to wait for a response, in milliseconds.

&reftitle.returnvalues;

If one or more notifications is pending, returns a single row, with fields `message` and `pid`, otherwise returns &false;.

&reftitle.errors;

A ValueError is thrown if `fetchMode` is not one of the valid `PDO::FETCH_`*`` constants.

A ValueError is thrown if `timeoutMilliseconds` is less than `0`.

A `E_WARNING` is raised when `timeoutMilliseconds` is greater than the value that can be contained in a signed 32-bit integer, in which case it will be the maximum value of a signed 32-bit integer.

&reftitle.seealso;

- `PDO::query`
- `PDOStatement::fetch`
- `PDOStatement::fetchAll`