Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9E4716323AE for ; Sun, 30 May 2010 05:37:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 99351-01 for ; Sun, 30 May 2010 08:37:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from delta01.pnet.xcon.it (delta01.pnet.xcon.it [62.48.53.16]) by mail.postgresql.org (Postfix) with ESMTP id E113662DBD4 for ; Sun, 30 May 2010 05:37:17 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by delta01.pnet.xcon.it (Postfix) with ESMTP id 7439E180D975; Sun, 30 May 2010 10:37:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at delta01.pnet.xcon.it Received: from delta01.pnet.xcon.it ([127.0.0.1]) by localhost (delta01.pnet.xcon.it [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EwQHKokA+WSh; Sun, 30 May 2010 10:37:13 +0200 (CEST) Received: from macbook-di-gabriele-bartolini.local (host193-122-dynamic.32-79-r.retail.telecomitalia.it [79.32.122.193]) (Authenticated sender: gabriele.bartolini@devise.it) by delta01.pnet.xcon.it (Postfix) with ESMTPSA id ED50A181035D; Sun, 30 May 2010 10:37:12 +0200 (CEST) Message-ID: <4C0223B8.6050009@2ndQuadrant.it> Date: Sun, 30 May 2010 10:37:12 +0200 From: Gabriele Bartolini User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: Tena Sakai CC: "pgsql-admin@postgresql.org" Subject: Re: What is field separator? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.701 tagged_above=-10 required=5 tests=BAYES_40=-0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201005/290 X-Sequence-Number: 34763 Tena Sakai ha scritto: > Can somebody please tell me what “|” is called in my example above? > And is it possible to change it from “|” to something else for > display purpose? The field separatore in psql is used only when the format is "unaligned" (which does not happen to be default). In order for it to be effective, you need to type in psql: \pset format unaligned \pset fieldsep '\t' This will give you an output with columns that are separated by tab. However, I suggest that you look at the documentation for more options and ways to achive the same results: http://www.postgresql.org/docs/current/static/app-psql.html Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support gabriele.bartolini@2ndQuadrant.it | www.2ndQuadrant.it