pg_on_connection_loss dbHandle callbackCommand
Specifies a valid database handle.
If present, provides the command string to execute when connection loss is detected.
changes, or cancels a request to execute a callback command if an
unexpected loss of connection to the database occurs. With a
callbackCommand parameter, the
request is established, or the command string of an already
existing request is replaced. With no
callbackCommand parameter, a prior request is
The callback command string is executed from the Tcl idle
loop. That is the normal idle state of an application written
with Tk. In non-Tk Tcl shells, you can execute
to cause the idle loop to be entered.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.