How to Permanently Modify Postgresql Schema Path
The Postgresql schema search path determines the order in which schemas are searched for tables specified without a schema name. By default, this path is set to only include the current schema.
To permanently set the schema path, you can use the SET SEARCH_PATH command. However, as you have observed, this setting is temporary and resets when you close the query window.
For a permanent solution, you can modify the search path for your user role using the ALTER ROLE command:
ALTER ROLE <your_login_role> SET search_path TO a,b,c;
Important Notes:
The above is the detailed content of How to Permanently Change the PostgreSQL Schema Search Path?. For more information, please follow other related articles on the PHP Chinese website!