Open emilioplatzer opened 4 years ago
Agree that this would be helpful to have. As a workaround, I had to create a separate database user and set the user's default search path to the app's schema:
DROP ROLE IF EXISTS app_user;
CREATE ROLE app_user WITH INHERIT LOGIN PASSWORD NULL;
GRANT CREATE ON DATABASE db_name TO app_user;
ALTER ROLE app_user WITH PASSWORD 'PASSWORD';
-- Sets app user's default search path to app's schema
ALTER ROLE app_user SET search_path TO "app_schema","public";
I want to know where can I set the schema name. Of course I can write the schema name in each sentence. But in my organization we do not do that. We set the schema in a
set search_path
sentence and then write commands without writing the schema name explicitily.I try:
Steps to Reproduce:
In postgresql (in
pgAdmin4
orpsql
)In Visual Studio Code settings.json
try to connect
I get:
I try with other
"options"
values. For example "schema=mtest", "schema:mtest", "search_path:mtest", etc.