Skip to content

Commit 5050f01

Browse files
authored
pgclirc: Clarify description of destructive_warning_restarts_connection option (#1437)
1 parent 04ca41a commit 5050f01

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pgcli/pgclirc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ multi_line_mode = psql
3333
# "unconditional_update" will warn you of update statements that don't have a where clause
3434
destructive_warning = drop, shutdown, delete, truncate, alter, update, unconditional_update
3535

36-
# Destructive warning can restart the connection if this is enabled and the
37-
# user declines. This means that any current uncommitted transaction can be
38-
# aborted if the user doesn't want to proceed with a destructive_warning
39-
# statement.
36+
# When `destructive_warning` is on and the user declines to proceed with a
37+
# destructive statement, the current transaction (if any) is left untouched,
38+
# by default. When setting `destructive_warning_restarts_connection` to
39+
# "True", the connection to the server is restarted. In that case, the
40+
# transaction (if any) is rolled back.
4041
destructive_warning_restarts_connection = False
4142

4243
# When this option is on (and if `destructive_warning` is not empty),

0 commit comments

Comments
 (0)