psql output and password Qs

From: ow <oneway_111(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: psql output and password Qs
Date: 2003-09-19 18:47:16
Message-ID: 20030919184716.51818.qmail@web21402.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

1) When psql is run from a script, how would one save *all* output generated by
psql (including errors, info messages, etc) in to a file?. I tried redirecting
output with ">" but that did not save error/confirmation messages.

2) When psql is run from a script, how would one pass a password to psql?

Thanks

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Oliver Elphick 2003-09-19 20:56:00 Re: psql output and password Qs
Previous Message Tom Lane 2003-09-19 16:27:26 Re: Problem with timestamp - Pls help