src/bin/psql/command.c
static backslashResult
exec_command_errverbose(PsqlScanState scan_state, bool active_branch)
{
	if (active_branch)
	{
		if (pset.last_error_result)
		{
			char	   *msg;

			msg = PQresultVerboseErrorMessage(pset.last_error_result,
											  PQERRORS_VERBOSE,
											  PQSHOW_CONTEXT_ALWAYS);
			if (msg)
			{
				pg_log_error("%s", msg);
				PQfreemem(msg);
			}
			else
				puts(_("out of memory"));
		}
		else
			puts(_("There is no previous error."));
	}

	return PSQL_CMD_SKIP_LINE;
}
/*
 * \errverbose -- display verbose message from last failed query
 */
\errverbose -- display verbose message from last failed query
\ errverbose -- display verbose message from last failed query
static backslashResult
exec_command_errverbose(PsqlScanState scan_state, bool active_branch)
{
	if (active_branch)
	{
		if (pset.last_error_result)
		{
			char	   *msg;
			msg = PQresultVerboseErrorMessage(pset.last_error_result,
											  PQERRORS_VERBOSE,
											  PQSHOW_CONTEXT_ALWAYS);
			if (msg)
			{
				pg_log_error("%s", msg);
				PQfreemem(msg);
			}
			else
				puts(_("out of memory"));
		}
		else
			puts(_("There is no previous error."));
	}
	return PSQL_CMD_SKIP_LINE;
}
static backslashResult exec_command_errverbose ( PsqlScanState scan_state , bool active_branch ) { if ( active_branch ) { if ( pset . last_error_result ) { char * msg ; msg = PQresultVerboseErrorMessage ( pset . last_error_result , PQERRORS_VERBOSE , PQSHOW_CONTEXT_ALWAYS ) ; if ( msg ) { pg_log_error ( " " , msg ) ; PQfreemem ( msg ) ; } else puts ( _ ( " " ) ) ; } else puts ( _ ( " " ) ) ; } return PSQL_CMD_SKIP_LINE ; }
\errverbose -- display verbose message from last failed query
\ errverbose -- display verbose message from last failed query