This function checks if a connection object is closed.

is_closed(conn)

Arguments

conn

Postgres connection object

Value

TRUE if the connection is closed and FALSE invisibly if it is open.