Re: Field Separator not working? - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Field Separator not working?
Date
Msg-id 4356233E.4040700@archonet.com
Whole thread Raw
In response to Field Separator not working?  (Mario Splivalo <mario.splivalo@mobart.hr>)
Responses Re: Field Separator not working?  (Mario Splivalo <mario.splivalo@mobart.hr>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Frank Bax
Date:
Subject: Re: SEVEN cross joins?!?!?
Next
From: Mario Splivalo
Date:
Subject: Re: Field Separator not working?