Re: [GENERAL] Suggested "minor" change to psql

From: Otavio Exel <oexel(at)economatica(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Suggested "minor" change to psql
Date: 1999-12-10 01:53:37
Message-ID: 19991209235337.F26171@economatica.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael J Davis wrote:

> Try:
>
> psql < mySchema.sql >& myOutput 2> myOutput.err

or (assuming you use bash)

psql < mySchema.sql > myOutput 2>&1

to have stdout & stderr together and 'in sync' sent to myOutput

beers,

--
Otavio Exel /<\oo/>\ oexel(at)economatica(dot)com(dot)br

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Derricutt, Mark 1999-12-10 03:41:49 Result Sets from INSERT/DELETE queries
Previous Message Peter Eisentraut 1999-12-10 01:28:41 Re: [GENERAL] Suggested "minor" change to psql