/**
* Gets the current system status of the PostgreSQL server.
*
* This function is a wrapper for the pg_stat function. It returns a string containing
* status information about the PostgreSQL server to which it's connected. The information includes
* uptime, threads, queries, open tables, and flush tables, among other status indicators.
* This can be useful for monitoring the health and performance of the PostgreSQL server, as well
* as for debugging purposes.
*
* @param PgSql\Connection $connection The pg connection resource.
* @return string A string describing the server status or FALSE on failure.
*/
function wpsqli_stat(&$connection)
{
throw new \Exception("PG4WP: Not Yet Implemented");
// mysqli_stat => No direct equivalent
}
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress/blob/bf2ef7f4185d5327543ded7df42efb16ff79fa7c/pg4wp/driver_pgsql.php#L304C1-L320C2