Re: Making psql error out on output failures

"Daniel Verite" <[email protected]> Tue, 14 Jan 2020 15:37:21 +0100
Newsgroups gmane.comp.db.postgresql.devel.general
Message-ID <[email protected]>
	David Z wrote:

> $ psql -d postgres  -At -c "select repeat('111', 1000000)" >
> /mnt/ramdisk/file

The -A option selects the unaligned output format and -t
switches to the "tuples only" mode (no header, no footer).

> Test-2: delete the "file", run the command within psql console,
> $ rm /mnt/ramdisk/file=20
> $ psql -d postgres

In this invocation there's no -A and -t, so the beginning of the
output is going to be a left padded column name that is not in the
other output.
The patch is not involved in that difference.


Best regards,
--=20
Daniel V=E9rit=E9
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite