Skip to content

Simplify shared memory size calculations#782

Merged
jeltz merged 1 commit into
percona:mainfrom
jeltz:simplify-shmem-size
Jul 13, 2026
Merged

Simplify shared memory size calculations#782
jeltz merged 1 commit into
percona:mainfrom
jeltz:simplify-shmem-size

Conversation

@jeltz

@jeltz jeltz commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

We calculated the shared memory size in an unnecessarily convoluted way. I am still a bit skeptical we should access GUCs in macros but this is at least a bit easier to read.

PG-0

@jeltz
jeltz force-pushed the simplify-shmem-size branch from 2273199 to 73a7e6f Compare July 11, 2026 08:36
@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.80%. Comparing base (91e9b87) to head (6382864).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #782      +/-   ##
==========================================
+ Coverage   87.59%   87.80%   +0.20%     
==========================================
  Files           3        3              
  Lines        1314     1320       +6     
  Branches      187      187              
==========================================
+ Hits         1151     1159       +8     
+ Misses         80       79       -1     
+ Partials       83       82       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/hash_query.c Outdated
@jeltz
jeltz force-pushed the simplify-shmem-size branch from 73a7e6f to 9426722 Compare July 13, 2026 07:24
We calculated the shared memory size in an unnecessarily convoluted way.
While as it move all calculations from macros to functions.
@jeltz
jeltz force-pushed the simplify-shmem-size branch from 9426722 to 6382864 Compare July 13, 2026 07:30
@jeltz
jeltz merged commit ba1e9fa into percona:main Jul 13, 2026
50 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants