Re: Making psql error out on output failures - Mailing list pgsql-hackers

From Daniel Verite
Subject Re: Making psql error out on output failures
Date
Msg-id efcc6033-deb2-45b5-9acf-47a120252d96@manitou-mail.org
Whole thread Raw
In response to Re: Making psql error out on output failures  (David Z <idrawone@gmail.com>)
Responses Re: Making psql error out on output failures  (David Zhang <david.zhang@highgo.ca>)
List pgsql-hackers
    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
> $ 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,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Setting min/max TLS protocol in clientside libpq
Next
From: Tom Lane
Date:
Subject: Re: Create/alter policy and exclusive table lock