Re: Suppress output from function?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Suppress output from function?
Дата
Msg-id 5070.1082169621@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Suppress output from function?  (Ron St-Pierre <rstpierre@syscor.com>)
Список 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 по дате отправления:

Предыдущее
От: Ron St-Pierre
Дата:
Сообщение: Suppress output from function?
Следующее
От: "BARTKO, Zoltan"
Дата:
Сообщение: Documentation tool