Refactoring#635
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #635 +/- ##
==========================================
- Coverage 86.47% 86.46% -0.02%
==========================================
Files 3 3
Lines 1346 1345 -1
Branches 217 217
==========================================
- Hits 1164 1163 -1
Misses 86 86
Partials 96 96 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
a394fff to
0a03600
Compare
AndersAstrand
left a comment
There was a problem hiding this comment.
sence->sense in the first commit message.
I think the second commit is an improvement, but I think we should introduce guc.h and hash_query.h to make things even better than having those "sections" in the one h-file.
If you don't feel like doing that we should commit this as is though.
Adding separate header files it's what I planned to suggest next 😄 Also what do you think about moving C sources to /src directory? |
Everywhere where we invoke this function we pass just zero. This argument has no sense as we always fill bucket id later.
Move declarations that used in single file to that file. No need to have them in main project header file.
0a03600 to
11c8f12
Compare
jeltz
left a comment
There was a problem hiding this comment.
Pretty sure there is more stuff in the pg_stat_monitor.h which could be moved into pg_stat_monitor.c but this is an iprovement on its own.
Description
Some refactoring:
Links