Allow DISCARD ALL inside default_transaction_use_follower_reads #124150
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-queries
SQL Queries Team
#120158 made it so that DISCARD ALL can no longer be run with the session variable
default_transaction_use_follower_reads
which makes the transaction read only.Unfortunately this breaks npgsql where it issues DISCARD ALL. This is by design and explained here:
npgsql/npgsql#2920
We should add a opt in cluster/session setting that allows discard all to be run in such scenarios.
Jira issue: CRDB-38729
The text was updated successfully, but these errors were encountered: