This style guide is offered in the hope of maintaining a consistent, user-friendly style throughout all the messages generated by PostgreSQL
Error, warning, and log messages generated within the server code should be created using ereport, or its older cousin elog