pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: mario.splivalo@mobart.hr
Cc: PostgresSQL list <pgsql-sql@postgresql.org>
Subject: Re: Field Separator not working?
Date: Wed, 19 Oct 2005 11:43:10 +0100
Message-ID: <4356233E.4040700@archonet.com> (raw)
In-Reply-To: <1129717152.3186.5.camel@ekim>
References: <1129717152.3186.5.camel@ekim>

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



view thread (3+ messages)  latest in thread

Message-ID: <4356233E.4040700@archonet.com>
Permalink:  ../4356233E.4040700@archonet.com/
Also on:    postgresql.org/message-id/4356233E.4040700@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, mario.splivalo@mobart.hr
  Subject: Re: Field Separator not working?
  In-Reply-To: <4356233E.4040700@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox