-
Notifications
You must be signed in to change notification settings - Fork 701
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
Adjust max_prepared_transactions only when it is default #7712
base: main
Are you sure you want to change the base?
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 check 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.17% 48.71% -40.47%
===========================================
Files 283 283
Lines 61023 60469 -554
Branches 7617 7464 -153
===========================================
- Hits 54420 29459 -24961
- Misses 4415 28375 +23960
- Partials 2188 2635 +447 🚀 New features to boost your workflow:
|
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.