Re: SET ROLE and search_path

From: Adam Brusselback <adambrusselback(at)gmail(dot)com>
To: 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>
Subject: Re: SET ROLE and search_path
Date: 2020-05-20 19:28:21
Message-ID: CAMjNa7c7_N4wzgP1suBd9XLAz0VSwG+g2Ra8pBKVvV0w5H6eDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2020-05-20 19:32:49 Re: SET ROLE and search_path
Previous Message Andrus 2020-05-20 19:09:14 Re: How to recover from compressed wal archieve in windows