Re: Suppress output from function?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron St-Pierre <rstpierre(at)syscor(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Suppress output from function?
Date: 2004-04-17 02:40:21
Message-ID: 5070.1082169621@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron St-Pierre <rstpierre(at)syscor(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message BARTKO, Zoltan 2004-04-17 11:36:44 Documentation tool
Previous Message Ron St-Pierre 2004-04-16 22:44:47 Suppress output from function?