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

From Tom Lane
Subject Re: Suppress output from function?
Date
Msg-id 5070.1082169621@sss.pgh.pa.us
Whole thread Raw
In response to Suppress output from function?  (Ron St-Pierre <rstpierre@syscor.com>)
List pgsql-general
Ron St-Pierre <rstpierre@syscor.com> writes:
> Whenever I run certain functions, such as the example below, the output
> is either displayed in the terminal or emailed to be by cron, depending
> on how I run it.  Is there any way I can re-write the function, set some
> psql parameters, etc, to ensure that the results aren't displayed?

Add "> /dev/null" to the psql invocation in the cron script.  You might
also want to add "-q" to suppress uninteresting comments on stderr,
while still hearing about any actual errors (in other words, I wouldn't
also route stderr to /dev/null...)

            regards, tom lane

pgsql-general by date:

Previous
From: Ron St-Pierre
Date:
Subject: Suppress output from function?
Next
From: "BARTKO, Zoltan"
Date:
Subject: Documentation tool