Re: psql --csv and other parameters - Mailing list pgsql-hackers

From Daniel Verite
Subject Re: psql --csv and other parameters
Date
Msg-id b8b32f32-276f-4efc-90ca-9e1e4b99ae82@manitou-mail.org
Whole thread Raw
In response to psql --csv and other parameters  (Erik Rijkers <er@xs4all.nl>)
Responses Re: psql --csv and other parameters  (Michael Paquier <michael@paquier.xyz>)
List 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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: VOPS-2.0
Next
From: Alvaro Herrera
Date:
Subject: Re: New function pg_stat_statements_reset_query() to resetstatistics of a specific query