pg_ping Ping database connection Description boolpg_ping resourceconnection pg_ping ping database connection, try to reconnect if it is broken. It returns &true; if connection is alive, otherwise &false;. <function>pg_ping</function> example ]]> See also pg_connection_status and pg_connection_reset.