Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.9.0
-
None
-
None
Description
The Schema Search Path
http://www.postgresql.org/docs/current/static/ddl-schemas.html
hive(myschema)> SET search_path TO myschema,default; – set Schema Search Path
hive(myschema)> SHOW search_path;
myschema
default
hive(default)>show search_path in myschema;
myschema
default
hive(default)> show tables;
de_src;
hive(myschema)> show tables; – in myschema database there is no table named de_src
src;
src1;
hive(myschema)>select * from de_src; --this queuery is equivalent to query: select * from default.de_src
the default search_path is : current_db,default
" SET search_path TO ..." statement is Session level command , when the session is over ,fall back to "current_db,default" search path.