On 2016-03-06 17:16:42 -0800, Joe Conway wrote:
> - #ifndef FRONTEND
> - /* NOTE: caller must provide gettext call around the format string */
> - #define log_error(...)      \
> -     elog(ERROR, __VA_ARGS__)
> - #else
> - #define log_error(...)      \
> -     do { \
> -                     char *buf = psprintf(__VA_ARGS__); \
> -                     fprintf(stderr, "%s: %s\n", progname, buf); \
> -                     exit(2); \
> -     } while (0)
> - #endif
> -

FWIW I'm considering implementing elog/ereport properly for the
frontend.  We've grown several hacks around that not being present, and
I think those by now have a higher aggregate complexity than a proper
implementation would have.

Greetings,

Andres Freund


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to