Search Postgresql Archives

Re: Running a void function in psql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Brown <eric.brown@xxxxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux