X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 17B46D7F87 for ; Wed, 19 Oct 2005 07:45:27 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18797-08 for ; Wed, 19 Oct 2005 10:45:21 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 462CBD70A1 for ; Wed, 19 Oct 2005 07:45:23 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id C0A104140DD; Wed, 19 Oct 2005 11:45:18 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 090F515ED9; Wed, 19 Oct 2005 11:43:14 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25955-06; Wed, 19 Oct 2005 11:43:10 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id B71B915ED5; Wed, 19 Oct 2005 11:43:10 +0100 (BST) Message-ID: <4356233E.4040700@archonet.com> Date: Wed, 19 Oct 2005 11:43:10 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: mario.splivalo@mobart.hr Cc: PostgresSQL list Subject: Re: Field Separator not working? References: <1129717152.3186.5.camel@ekim> In-Reply-To: <1129717152.3186.5.camel@ekim> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.059 required=5 tests=[AWL=0.009, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/219 X-Sequence-Number: 23072 Mario Splivalo wrote: > pulitzer2=# \t > Showing only tuples. > pulitzer2=# \f# > Field separator is "#". > pulitzer2=# select * from pg_user; > mario | 1 | t | t | t | ******** | > psql does tell me that I changed the field separator to "#", but it > still uses "|" as separator. I'm parsing the script from bash, using > psql, and setting the field separator options on the command line, but I > get similair results, the field separator is always "|", so I need to > awk-it with -F, but sometimes I have problems because data in my tables > often contain "|" charachter. You'll want this too: \pset format unaligned man psql or see the manual for full details -- Richard Huxton Archonet Ltd