Re: SET ROLE and search_path - Mailing list pgsql-general

From Adam Brusselback
Subject Re: SET ROLE and search_path
Date
Msg-id CAMjNa7c7_N4wzgP1suBd9XLAz0VSwG+g2Ra8pBKVvV0w5H6eDg@mail.gmail.com
Whole thread Raw
In response to SET ROLE and search_path  (Patrick FICHE <Patrick.Fiche@aqsacom.com>)
Responses Re: SET ROLE and search_path  (Rob Sargent <robjsargent@gmail.com>)
Re: SET ROLE and search_path  (Patrick FICHE <Patrick.Fiche@aqsacom.com>)
List pgsql-general
I have this exact setup, and I use roles / schema names that match so the $user var works with the search path when I set role as my application user.

When search_path contains “$user”, does it refer to session_user or current_user ?
It uses current_user, not session_user. Works perfectly with set_role for me.

pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: Re: How to recover from compressed wal archieve in windows
Next
From: Rob Sargent
Date:
Subject: Re: SET ROLE and search_path