pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

Feature Request: Show how many rows are going to be altered alongside "you're about to run a destructive command"

Open sommohapatra opened this issue 4 years ago • 1 comments

sommohapatra avatar Oct 25 '21 17:10 sommohapatra

That's quite difficult or fragile, depending on how you approach it: that would need to execute the statement within its own transaction that gets rolledback at end.

lelit avatar Oct 26 '21 18:10 lelit

As noted by @lelit, I cannot be done without actually executing the query. Even if we did create a savepoint/transaction for that (and rollback), what if the query takes hours?

I am closing this.

dbaty avatar Mar 05 '24 10:03 dbaty