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