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
Add a GUC variable to enable/disable OSM reads #4991
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4991 +/- ##
==========================================
- Coverage 89.61% 89.59% -0.03%
==========================================
Files 227 227
Lines 51608 51617 +9
==========================================
- Hits 46251 46248 -3
- Misses 5357 5369 +12
Continue to review full report at Codecov.
|
a6ddda1
to
93bbc60
Compare
src/hypertable_restrict_info.c
Outdated
chunk_ids = !ts_guc_enable_osm_reads ? list_delete_int(chunk_ids, osm_chunk_id) : | ||
!list_member_int(chunk_ids, osm_chunk_id) ? | ||
lappend_int(chunk_ids, osm_chunk_id) : | ||
chunk_ids; |
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.
I am surprised we have a code cov issue here. Could you take a look?
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.
I rewrote it into an if/else statement after Jan's suggestion. Codecov now complains about the closing braces, but I don't think I can do anything about it.
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.
Changes look good to me.
93bbc60
to
4fe69b5
Compare
ba902de
to
358133f
Compare
src/hypertable_restrict_info.c
Outdated
{ | ||
chunk_ids = list_delete_int(chunk_ids, osm_chunk_id); | ||
} | ||
else if (!list_member_int(chunk_ids, osm_chunk_id)) |
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.
Nit: list_append_unique_int
could be an alternative
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.
Oh, I missed that function. Thanks for the review!
358133f
to
7989eb2
Compare
7989eb2
to
9c401aa
Compare
The GUC variable controls whether OSM chunk is used in a select query plan.