Make IsInstallXLogFileSegmentActive() an assert-only function - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Make IsInstallXLogFileSegmentActive() an assert-only function
Date
Msg-id CALj2ACUYtSSGQn-gei+B-VsBeEziFdb-FwXywmhKDkgL_XCmaw@mail.gmail.com
Whole thread Raw
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Make use of assign_checkpoint_completion_target() to calculate CheckPointSegments correctly
Next
From: Masahiko Sawada
Date:
Subject: Re: Perform streaming logical transactions by background workers and parallel apply