Re: [HACKERS] psql --batch - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: [HACKERS] psql --batch
Date
Msg-id alpine.DEB.2.20.1708280847540.9003@lancre
Whole thread Raw
In response to [HACKERS] psql --batch  (Craig Ringer <craig@2ndquadrant.com>)
Responses Re: [HACKERS] psql --batch
Re: [HACKERS] psql --batch
List pgsql-hackers
> I find myself regurgitating the incantation
>
> psql -qAtX -v ON_ERRORS_STOP=1
>
> quite a bit. It's not ... super friendly.
>
> It strikes me that we could possibly benefit from a 'psql --batch' option.
>
> Thoughts?

The link between -qAtX and "batch" is not that fully obvious, especially 
the unaligned tuples-only part. If so, why not some -F <tab> as well?

ISTM that the real pain is the "-v ON_ERRORS_STOP=1" which I occasionally 
encountered as well, the other one letter ones are not too bad. Maybe it 
would be enough to have a shortcut for this one, say "-B"?

alias?

-- 
Fabien.



pgsql-hackers by date:

Previous
From: Mithun Cy
Date:
Subject: [HACKERS] NoMovementScanDirection in heapgettup() and heapgettup_pagemode()
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Re: Poor cost estimate with interaction between tablecorrelation and partial indexes