-
Notifications
You must be signed in to change notification settings - Fork 723
Adjust max_prepared_transactions only when it is default #7712
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
Conversation
Argh, I always forget to check it with older PG versions. |
*/ | ||
#if PG_VERSION_NUM >= PG_VERSION_16 | ||
struct config_generic *gconf = find_option("max_prepared_transactions", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two questions:
- Why do we provide "create_placeholders" as "true"?
- Should we provide "elevel" as "ERROR" maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your comments. I no longer remember why. Right now providing "create_placeholders" as "false" and "elevel" as "ERROR" looks better to me, and it seems to work. Fixed that, rebased to main, and squashed my commits
b7c57fe
to
84903e7
Compare
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (50.00%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.
Additional details and impacted files@@ Coverage Diff @@
## main #7712 +/- ##
===========================================
- Coverage 89.20% 48.72% -40.48%
===========================================
Files 283 283
Lines 61051 60150 -901
Branches 7625 7411 -214
===========================================
- Hits 54458 29308 -25150
- Misses 4408 28211 +23803
- Partials 2185 2631 +446 🚀 New features to boost your workflow:
|
@onurctirtir , what is your policy on back-porting that kind of changes to released versions? Is it going to get to 13.0 and 12.1? Or it will only get to the future version (13.1, 14.0, or whatever it is)? |
DESCRIPTION: Adjusts max_prepared_transactions only when it's set to default on PG >= 16
Fixes #7711.
Change AdjustMaxPreparedTransactions to really check if max_prepared_transactions is explicitly set by user, and only adjust max_prepared_transactions when it is default.
This fixes 021_twophase test failure with loaded Citus library after postgres/postgres@b39c5272.