Don't use elog() in src/port/pwrite.c.
authorThomas Munro <tmunro@postgresql.org>
Wed, 13 Jan 2021 06:11:09 +0000 (19:11 +1300)
committerThomas Munro <tmunro@postgresql.org>
Wed, 13 Jan 2021 06:34:14 +0000 (19:34 +1300)
commitdf10ac625c1672edf839ff59cfcac9dcc097515c
treeedd966c9600c57a5bcf81f8e2e8d4cbd9a8f084c
parentee1b38f65948cb09ecf3c39b58bd88aabc950e7c
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: http://postgr.es/m/CA%2BhUKGL57RvoQsS35TVPnQoPYqbtBixsdRhynB8NpcUKpHTTtg%40mail.gmail.com
src/port/pwrite.c