Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0E332633CA7 for ; Wed, 2 Jun 2010 03:07:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 70051-02 for ; Wed, 2 Jun 2010 06:07:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.egcrc.net (mail.egcrc.net [63.193.204.10]) by mail.postgresql.org (Postfix) with ESMTP id A25D5633C68 for ; Wed, 2 Jun 2010 03:07:31 -0300 (ADT) Received: from EGCRC-EX04.egcrc.org ([::1]) by EGCRC-EX03.egcrc.org ([fe80::5c82:4343:5244:a0d5%11]) with mapi; Tue, 1 Jun 2010 23:07:29 -0700 From: Tena Sakai To: Greg Smith CC: Gabriele Bartolini , "pgsql-admin@postgresql.org" Date: Tue, 1 Jun 2010 23:05:11 -0700 Subject: Re: What is field separator? Thread-Topic: [ADMIN] What is field separator? Thread-Index: AcsCGS1rhiRdBalcQRyNvyuHhdUQ0QAAGHG5 Message-ID: In-Reply-To: <4C05F3EC.1020107@2ndquadrant.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-Entourage/13.4.0.100208 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201006/9 X-Sequence-Number: 34787 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@gallo.ucsf.edu On 6/1/10 11:02 PM, "Greg Smith" wrote: > Tena Sakai wrote: >> I got it to work by emulating what you wrote. >> But I think you meant -A, not -At below. >> =20 >>>> psql -c "select name,setting from pg_settings limit 1" -d postgres -At >>>> -F $'\t' >>>> =20 >=20 > 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=3Dunaligned'". 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= .