from all libpq-using applications not just psql. We could make this
conditional on the error verbosity --- in terse mode the LINE N
output wouldn't appear, and at character N still would. Applications
should already be expecting multiline outputs from PQerrorMessage if
they're in non-terse
The attached WIP patch improves the parser so that cursor positions can be
attached to many errors reported during parse analysis, such as complaints
about nonexistent columns or functions. This is along the lines proposed
in my rant here: