Quantcast
Channel: What is the search_path for a given database and user? - Database Administrators Stack Exchange
Browsing all 4 articles
Browse latest View live

Answer by Merlin for What is the search_path for a given database and user?

select * from pg_user;True for postgres and Redshift. This seems too simple compared to the previous answers that depend on pg_db_role_setting, but the useconfig column will have a list of user configs...

View Article



Answer by Erwin Brandstetter for What is the search_path for a given database...

You can find configuration settings for roles and databases in the catalog table pg_db_role_setting.This query retrieves any settings for a given role or database:SELECT r.rolname, d.datname,...

View Article

Answer by Daniel Vérité for What is the search_path for a given database and...

The permanent settings for both databases and roles are stored in the pg_db_role_settings system cluster-wide table.Only settings passed to ALTER USER and ALTER DATABASE are present in this table. To...

View Article

What is the search_path for a given database and user?

I can see the current search_path with:show search_path ;And I can set the search_path for the current session with:set search_path = "$user", public, postgis;As well, I can permanently set the...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images