convert elog(LOG) calls to ereport

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-12-02T13:26:24Z
Lists: pgsql-hackers

Attachments

There are a number of elog(LOG) calls that appear to be user-facing, so 
they should be ereport()s.  This patch changes them.  There are more 
elog(LOG) calls remaining, but they all appear to be some kind of 
debugging support.  Also, I changed a few elog(FATAL)s that were nearby, 
but I didn't specifically look for them.

Commits

  1. Factor out system call names from error messages

  2. Convert elog(LOG) calls to ereport() where appropriate