Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow EXPLAIN in read-only mode #7637

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkindahl
Copy link
Contributor

@mkindahl mkindahl commented Jan 30, 2025

Using EXPLAIN when transaction_read_only is set to on fails with an error. This is fixed by explicitly setting the check_read_only flag.

Fixes #7635

@mkindahl mkindahl self-assigned this Jan 30, 2025
@mkindahl mkindahl added the bug label Jan 30, 2025
@mkindahl mkindahl force-pushed the fix-readonly-for-explain branch 2 times, most recently from 15365a3 to 99f233a Compare January 30, 2025 16:00
Using `EXPLAIN` when `transaction_read_only` is set to `on` fails with
an error. This is fixed by explicitly setting the `check_read_only`
flag.
Copy link

@gayyappan, @antekresic: please review this pull request.

Powered by pull-review

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.34%. Comparing base (59f50f2) to head (226a8d3).
Report is 721 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7637      +/-   ##
==========================================
+ Coverage   80.06%   81.34%   +1.27%     
==========================================
  Files         190      241      +51     
  Lines       37181    44724    +7543     
  Branches     9450    11164    +1714     
==========================================
+ Hits        29770    36381    +6611     
- Misses       2997     3955     +958     
+ Partials     4414     4388      -26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -0,0 +1 @@
Fixes: #7637 Allow EXPLAIN in read-only mode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a thanks section for the community user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Timescale breaking FDW reports accessing the Replica - EXPLAIN statement
2 participants