-
Notifications
You must be signed in to change notification settings - Fork 893
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
PG16: Fix multinode deparsing issues #6183
PG16: Fix multinode deparsing issues #6183
Conversation
c501c66
to
aced296
Compare
Codecov Report
@@ Coverage Diff @@
## main #6183 +/- ##
==========================================
- Coverage 81.45% 81.41% -0.04%
==========================================
Files 246 246
Lines 56978 56938 -40
Branches 12626 12614 -12
==========================================
- Hits 46409 46357 -52
+ Misses 8191 8169 -22
- Partials 2378 2412 +34
... and 44 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
cf70e49
to
1b2c6c0
Compare
@erimatnor, @konskov: please review this pull request.
|
1b2c6c0
to
34a483d
Compare
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.
LGTM, just some nits and suggestions.
With the changes introduced in PG16 by moving the permission checking information out of the range table entries to a new data struct named `RTEPermissionInfo` we can't use the rte->updatedcols anymore for the target_attrs when deparsing, so we need to build new target_attrs based on the `get_rel_all_updated_cols` and for our multinode implementation we need to get rid the generated always attributes to don't risk to build the parameters in `stmt_params_create` using this column. Postgres FDW also have it own logic to skip generated columns as well. postgres/postgres@a61b1f74
34a483d
to
df085d7
Compare
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.
Based on the discussion we had today i dont think this should be merged.
Ok, will send another PR blocking usage of distributed hypertables |
Closing because we decided to don't support multinode on PG16. This PR #6190 remove the support of multinode on PG16. |
With the changes introduced in PG16 by moving the permission checking information out of the range table entries to a new data struct named
RTEPermissionInfo
we can't use the rte->updatedcols anymore for the target_attrs when deparsing, so we need to build new target_attrs based on theget_rel_all_updated_cols
and for our multinode implementation we need to get rid the generated always attributes to don't risk to build the parameters instmt_params_create
using this column. Postgres FDW also have it own logic to skip generated columns as well.Disable-check: force-changelog-file