White space can of course make things easy to read, but psql seems to ignore those blank lines. Is there any way to retain them in psql output?
Nope, there is no setting for psql to print all blank lines it encounters to stdout. If you want to format your output with stuff other than query results it provides \echo