Hi !!
Is it possible to put inside a plpgsql function psql commands like \pset ?
No. These commands are handled by psql, not the Postgres server.
It's likely that there's a method of doing what you want on the back-end though, although it might not be as easy as it is in psql.
-- Bill Moran Potential Technologies http://www.potentialtech.com
---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings