Don't use elog() in src/port/pwrite.c.

Thomas Munro <tmunro@postgresql.org>

Commit: df10ac625c1672edf839ff59cfcac9dcc097515c
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-01-13T06:34:14Z
Releases: 14.0
Don't use elog() in src/port/pwrite.c.

Nothing broke because of this oversight yet, but it would fail to link
if we tried to use pg_pwrite() in frontend code on a system that lacks
pwrite().  Use an assertion instead.  Also pgindent while here.

Discussion: https://postgr.es/m/CA%2BhUKGL57RvoQsS35TVPnQoPYqbtBixsdRhynB8NpcUKpHTTtg%40mail.gmail.com

Files

PathChange+/−
src/port/pwrite.c modified +6 −6

Discussion