May 2018
Intermediate to advanced
576 pages
30h 25m
English
Earlier, I said that schemas work like directories, or at least a little.
The PostgreSQL concept of search_path is similar to the concept of a PATH environment variable.
The PostgreSQL concept of the current schema is similar to the concept of the current working directory. There is no cd command to change the directory. The current working directory is changed by altering search_path.
A few other differences exist; for example, PostgreSQL schemas are not arranged in a hierarchy like filesystem directories.
Many people create a user of the same name as the schema to make this work in a way similar to other RDBMSes, such as Oracle.