add schema to path in postgresql
Posted
by veilig
on Stack Overflow
See other posts from Stack Overflow
or by veilig
Published on 2010-03-25T15:27:12Z
Indexed on
2010/03/29
6:33 UTC
Read the original article
Hit count: 364
I'm the process of moving applications over from all in the public schema to each having their own schema. for each application, I have a small script that will create the schema and then create the tables,functions,etc... to that schema. Is there anyway to automatically add a newly created schema to the search_path? Currently, the only way I see is to find the users current path SHOW search_path;
and then add the new schema to it SET search_path to xxx,yyy,zzz;
I would like some way to just say, append schema zzz to the users_search path. is this possible?
© Stack Overflow or respective owner