Re: Running a void function in psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Running a void function in psql
Дата
Msg-id 5157.1105486377@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Running a void function in psql  (Eric Brown <eric.brown@propel.com>)
Список pgsql-general
Eric Brown <eric.brown@propel.com> writes:
> I run 'psql -f mycreatedb.sql' to setup things for my program.
> It has to run a few stored procedures after they're created. However, I
> do this by 'SELECT f(...);'. When I do this though, it prints out a
> bunch of rubbish like:
> f
> ------

> (1 row)

> How do I get rid of this rubbish? I just want to see errors or
> NOTICE/INFO strings I intentionally log.

Something like

    SELECT f(...)
    \g /dev/null

should do it.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Roman Neuhauser
Дата:
Сообщение: int4 -> unix timestamp -> sql timestamp; abstime?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: int4 -> unix timestamp -> sql timestamp; abstime?