(PHP 8 >= 8.3.0)
pg_pipeline_status — Returns the current pipeline mode status of the libpq connection.
Returns the current pipeline mode status of the libpq connection.
Returns one of the following status:
PGSQL_PIPELINE_ON
, PGSQL_PIPELINE_OFF
or
PGSQL_PIPELINE_ABORTED
.
示例 #1 pg_pipeline_status() example
Description.
<?php
$dbconn = pg_connect("host=localhost port=5432 dbname=mary")
or die("Could not connect");
pg_enter_pipeline_node($dbconn);
echo pg_pipeline_status($dbconn);
pg_close($dbconn);
?>
以上示例会输出:
0