Обсуждение: SET command
First off it has been a while since I needed to go to the www.postgresql.org documentation ( and site in general ) and the new layout/design is nice. Now the question. I'm reading up on schema and trying to remember from when I last researched them what the process is to make the SET search_path TO myschema,public; permanent for users when they sign on. The documentation implies that it is only per SESSION or transaction (LOCAL). I seem to remember some setting that cause these to be stored and then executed each time a user connected. A gentle whack with the clue-stick please. TIA, Rod -- --- [This E-mail scanned for viruses by Declude Virus]
On Fri, Jan 28, 2005 at 02:48:19PM -0800, Roderick A. Anderson wrote: > I'm reading up on schema and trying to remember from when I last > researched them what the process is to make the > > SET search_path TO myschema,public; > > permanent for users when they sign on. The documentation implies that > it is only per SESSION or transaction (LOCAL). I seem to remember some > setting that cause these to be stored and then executed each time a user > connected. You can set variables globally in postgresql.conf, per database with ALTER DATABASE, or per user with ALTER USER. -- Michael Fuhr http://www.fuhr.org/~mfuhr/