Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 883056345B0 for ; Wed, 2 Jun 2010 03:03:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 53998-02-5 for ; Wed, 2 Jun 2010 06:03:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id 09D2D634EE5 for ; Wed, 2 Jun 2010 03:02:28 -0300 (ADT) Received: from [192.168.0.105] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MaFzQ-1OdQnu09sG-00KJOb; Wed, 02 Jun 2010 08:02:22 +0200 Message-ID: <4C05F3EC.1020107@2ndquadrant.com> Date: Wed, 02 Jun 2010 02:02:20 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Tena Sakai CC: Gabriele Bartolini , "pgsql-admin@postgresql.org" Subject: Re: What is field separator? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX190jsM5Wf4ObjV8pADr69LqaTHvhCALCJST5lU zKukR4JzUMrohAJ/ot65c15+voGwkbhKP0Ttt8xw3ZpSy6eeSJ jsULeKMd1fhY7MIlR4rOkgmrRuRGtg4 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/7 X-Sequence-Number: 34785 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. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us