Hi, IsInstallXLogFileSegmentActive() is currently being used for assert checks. How about making it an assert-only function to disable it on production builds? This can shave an unused function on production builds. We can easily switch back when there comes a real caller outside of xlog.c. I'm attaching a tiny patch for this.
Thoughts? -- Bharath Rupireddy PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
v1-0001-Make-IsInstallXLogFileSegmentActive-an-assert-onl.patch
Description: Binary data