Re: Controlling psql output

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Controlling psql output
Date: 2009-05-08 17:10:09
Message-ID: 1241802609.5178.217.camel@jd-laptop.pragmaticzealot.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2009-05-08 at 09:51 -0700, Gauthier, Dave wrote:
> Hi:
>
>
>
> Using a single psql command to generate stdout in linux that will be
> redirected to a file. Many rows with 1 column are returned. I want
> no header, no footer, no blank lines at the top or bottom, no initial
> space before each record. This is what I’m trying...
>
>
>
> psql –P tuples_only=on,footer=off,border=0 mydb

psql -A -t

jd(at)jd-laptop:~$ psql -A -t -U postgres -c "select * from bool_test"
f
jd(at)jd-laptop:~$

Sincerely,

Joshua D. Drake

>
>
--
PostgreSQL - XMPP: jdrake(at)jabber(dot)postgresql(dot)org
Consulting, Development, Support, Training
503-667-4564 - http://www.commandprompt.com/
The PostgreSQL Company, serving since 1997

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christophe 2009-05-08 17:31:04 Re: Controlling psql output
Previous Message Gauthier, Dave 2009-05-08 16:51:05 Controlling psql output