Re: What is field separator?

From: Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu>
To: Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: Gabriele Bartolini <gabriele(dot)bartolini(at)2ndQuadrant(dot)it>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: What is field separator?
Date: 2010-06-02 06:05:11
Message-ID: C82B42A7.AF6F%tsakai@gallo.ucsf.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Greg,

My apologies. I hadn't realized that -At was a combination
of -A and -t. Rather, I kept thinking that t as argument
to -A.

Regards,

Tena Sakai
tsakai(at)gallo(dot)ucsf(dot)edu

On 6/1/10 11:02 PM, "Greg Smith" <greg(at)2ndquadrant(dot)com> wrote:

> Tena Sakai wrote:
>> I got it to work by emulating what you wrote.
>> But I think you meant -A, not -At below.
>>
>>>> psql -c "select name,setting from pg_settings limit 1" -d postgres -At
>>>> -F $'\t'
>>>>
>
> You had -t in your original to turn off the display of column names and
> the counts at the end, and -A is the shortcut for what you had as "-P
> 'format=unaligned'". I throw "-At" into almost every use of psql from a
> bash script I do, that's the usual combination that gets the basic
> format to be right; then tweak things like the field separator afterwards.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Szymon Guz 2010-06-02 06:07:27 Re: Restore DataBase
Previous Message Greg Smith 2010-06-02 06:02:20 Re: What is field separator?