Re: psql --csv and other parameters

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "Erik Rijkers" <er(at)xs4all(dot)nl>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql --csv and other parameters
Date: 2018-11-28 13:38:04
Message-ID: b8b32f32-276f-4efc-90ca-9e1e4b99ae82@manitou-mail.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Erik Rijkers wrote:

> I don't know if this really is a bug but it seems wrong to me:
>
> psql -A --csv -Xc "select * from pg_namespace order by 1"
>
> gives a difference result than
>
> psql --csv -A -Xc "select * from pg_namespace order by 1"

-A and --csv each select an output format, and since
there can be only one output format active, they are
mutually exclusive.

When options conflict, the rightmost on the command line wins,
so -A --cvs is the same as --csv, and --csv -A is the same as -A

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-11-28 13:43:35 Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query
Previous Message Bruce Momjian 2018-11-28 13:18:00 Re: VOPS-2.0