diff options
Diffstat (limited to 'src/bin/psql/settings.h')
-rw-r--r-- | src/bin/psql/settings.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/psql/settings.h b/src/bin/psql/settings.h index 97941aa10c6..9601f6e90ce 100644 --- a/src/bin/psql/settings.h +++ b/src/bin/psql/settings.h @@ -118,6 +118,13 @@ typedef struct _psqlSettings VariableSpace vars; /* "shell variable" repository */ /* + * If we get a connection failure, the now-unusable PGconn is stashed here + * until we can successfully reconnect. Never attempt to do anything with + * this PGconn except extract parameters for a \connect attempt. + */ + PGconn *dead_conn; /* previous connection to backend */ + + /* * The remaining fields are set by assign hooks associated with entries in * "vars". They should not be set directly except by those hook * functions. |