Re: Suppress output from psql? - Mailing list pgsql-general

From Ron St-Pierre
Subject Re: Suppress output from psql?
Date
Msg-id 4135EEFC.4070309@syscor.com
Whole thread Raw
In response to Suppress output from psql?  (Ron St-Pierre <rstpierre@syscor.com>)
List pgsql-general
Ron St-Pierre wrote:

> Is there a way 'within' psql to suppress output?
>
> One of our cron scripts calls a sql file which contains various database
> commands (ALTER TABLEs, UPDATEs, etc) and various user-defined functions.
> So within this sql file there are various SELECT * FROM myFunction();
> which
> sends output to the user from cron. I can't see anyway to suppress
> this from
> the psql docs and I don't believe that I can suppress it from cron
> either (I'll do
> some more checking there).

Tom, that looks like exactly what I need, I'll try it. Doug, Scott,
Alvaro, John, I don't want to send the entire output
of my cron script to /dev/null, just the parts inside of my misc.sql
file (which cron calls) where I call my own functions,
eg SELECT * FROM myFunction();

Also. I will check out the MAILTO="" which will be helpful for some of
my other cron scripts. Thanks John.

Ron


pgsql-general by date:

Previous
From: John DeSoi
Date:
Subject: stand-alone psql
Next
From: Peter Eisentraut
Date:
Subject: Re: <> syntax legal?