cloudberry
cloudberry copied to clipboard
chore: compile postgres statically to reduce the PLT function call
When building postgres, link all the *.o files directly into the binary instead of linking libpostgres.so. This approach reduces the overhead of PLT function calls. Based on our internal performance tests, this change improves the performance of a 1TB TPC-DS benchmark by 5-8%.
Fixes #ISSUE_Number
What does this PR do?
Type of Change
- [ ] Bug fix (non-breaking change)
- [ ] New feature (non-breaking change)
- [ ] Breaking change (fix or feature with breaking changes)
- [ ] Documentation update
Breaking Changes
Test Plan
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Passed
make installcheck - [ ] Passed
make -C src/test installcheck-cbdb-parallel
Impact
Performance:
User-facing changes:
Dependencies:
Checklist
- [ ] Followed contribution guide
- [ ] Added/updated documentation
- [ ] Reviewed code for security implications
- [ ] Requested review from cloudberry committers