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

Merged
merged 1 commit into from
Jan 31, 2025

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 3 times, most recently from 99f233a to 226a8d3 Compare January 30, 2025 16:02
@mkindahl mkindahl marked this pull request as ready for review January 30, 2025 16:13
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.29%. Comparing base (59f50f2) to head (87947d8).
Report is 728 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7637      +/-   ##
==========================================
+ Coverage   80.06%   81.29%   +1.23%     
==========================================
  Files         190      241      +51     
  Lines       37181    44724    +7543     
  Branches     9450    11164    +1714     
==========================================
+ Hits        29770    36360    +6590     
- Misses       2997     3973     +976     
+ Partials     4414     4391      -23     

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

@mkindahl mkindahl force-pushed the fix-readonly-for-explain branch from 226a8d3 to 09d28dc Compare January 31, 2025 06:56
@mkindahl mkindahl requested a review from erimatnor January 31, 2025 06:57
@mkindahl mkindahl force-pushed the fix-readonly-for-explain branch from 09d28dc to 81199a2 Compare January 31, 2025 11:31
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.
@mkindahl mkindahl force-pushed the fix-readonly-for-explain branch from 81199a2 to 87947d8 Compare January 31, 2025 12:44
@mkindahl mkindahl enabled auto-merge (rebase) January 31, 2025 12:44
@mkindahl mkindahl merged commit 39049fe into timescale:main Jan 31, 2025
50 checks passed
@mkindahl mkindahl deleted the fix-readonly-for-explain branch January 31, 2025 13:10
@svenklemm svenklemm added this to the v2.18.1 milestone Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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