How to format text output in psql scripts
For psql's \echo command, using colors and basic text formatting such as bold or underlined can be done through the use of ANSI color codes.
For psql's \echo command, using colors and basic text formatting such as bold or underlined can be done through the use of ANSI color codes.
psql is a native terminal-based client for PostgreSQL.