pg_connection_reset(3) php man page | unix.com

Man Page: pg_connection_reset

Operating Environment: php

Section: 3

PG_CONNECTION_RESET(3)													    PG_CONNECTION_RESET(3)

pg_connection_reset - Reset connection (reconnect)

SYNOPSIS
bool pg_connection_reset (resource $connection)
DESCRIPTION
pg_connection_reset(3) resets the connection. It is useful for error recovery.
PARAMETERS
o $connection - PostgreSQL database connection resource.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 pg_connection_reset(3) example <?php $dbconn = pg_connect("dbname=publisher") or die("Could not connect"); $dbconn2 = pg_connection_reset($dbconn); if ($dbconn2) { echo "reset successful "; } else { echo "reset failed "; } ?>
SEE ALSO
pg_connect(3), pg_pconnect(3), pg_connection_status(3). PHP Documentation Group PG_CONNECTION_RESET(3)
Related Man Pages
pg_parameter_status(3) - php
pg_cancel_query(3) - php
pg_get_result(3) - php
pg_send_prepare(3) - php
pg_set_error_verbosity(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!