blob: 46a6dcce768f6eb063ce33245b3c8112fda7ce0c [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001OPTIONAL
2SYNOPSIS
3 int pg_pending ()
4 int pg_pending (object obj)
5
6DESCRIPTION
7 Return the number of pending queries for the connection on the given
8 object <obj> (default is the current object). The object has no
9 database connection, return -1.
10
11 The function is available only if the driver is compiled with
12 PostgreSQL support. In that case, __PGSQL__ is defined.
13
14 The efun triggers a privilege violation ("pgsql", "pg_pending").
15
16HISTORY
17 Added in 3.3.445.
18 LDMud 3.3.640 added the privilege violation.
19
20SEE ALSO
21 pgsql(C), pg_connect(E), pg_conv_string(E), pg_query(E), pg_close(E),
22 privilege_violation(M)