Skip to content

Commit

Permalink
pgclirc: Clarify description of `destructive_warning_restarts_connect…
Browse files Browse the repository at this point in the history
…ion` option (#1437)
  • Loading branch information
dbaty authored Nov 6, 2023
1 parent 04ca41a commit 5050f01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pgcli/pgclirc
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ multi_line_mode = psql
# "unconditional_update" will warn you of update statements that don't have a where clause
destructive_warning = drop, shutdown, delete, truncate, alter, update, unconditional_update

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

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

0 comments on commit 5050f01

Please sign in to comment.