Re: SET ROLE and search_path

From: Patrick FICHE <Patrick(dot)Fiche(at)aqsacom(dot)com>
To: Adam Brusselback <adambrusselback(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: SET ROLE and search_path
Date: 2020-05-20 20:12:04
Message-ID: AM6PR05MB528776E19F5DD5B12826CB65EFB60@AM6PR05MB5287.eurprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks a lot
I will try it again. I probably missed something in my configuration.

Téléchargez Outlook pour iOS<https://aka.ms/o0ukef>
________________________________
De : Adam Brusselback <adambrusselback(at)gmail(dot)com>
Envoyé : Wednesday, May 20, 2020 9:28:21 PM
À : Patrick FICHE <Patrick(dot)Fiche(at)aqsacom(dot)com>
Cc : pgsql-general(at)lists(dot)postgresql(dot)org <pgsql-general(at)lists(dot)postgresql(dot)org>
Objet : Re: SET ROLE and search_path

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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-05-20 20:30:48 Re: SET ROLE and search_path
Previous Message Lu, Dan 2020-05-20 20:01:03 Question on removing primary replication node using repmgr?