Re: fied separator change from the shell command line

From: Edmund Bacon <ebacon-xlii(at)onesystem(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: fied separator change from the shell command line
Date: 2005-03-10 16:06:51
Message-ID: m3ll8v32p0.fsf@elb_lx.onesystem.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

paulo(dot)oliveira(at)engineer(dot)com writes:

> Hello,
>
> I'm trying to change the usal "|" table field separator from the shell
> command line:
> psql -d ect -f pl_lost.sql -o pl_lost.out.txt -F "\t" -U asaadmin
>
> But it doesn't work. It keeps the same "|" separator in the output
> file.
> Can anyone please help me?
> I need to output to a tab separated file. Can anynone hel me with this?
>
> Thanks in advance,

Changing the field separator only works with unaligned output. You
need to add a -A to your command line switches (or --no-align). Doing
this, though, drops the column headers.

--
Remove -42 for email

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tope Akinniyi 2005-03-10 16:19:36 Re: PostgreSQL still for Linux only?
Previous Message paulo.oliveira 2005-03-10 15:42:29 fied separator change from the shell command line