Re: current_role of caller of a DEFINER function

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: current_role of caller of a DEFINER function
Date: 2024-06-26 12:42:21
Message-ID: CAKFQuwbnK-gEL=LrtMpkvGGSHCdwhSvDgcJCu6QNj-6rquGRtQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, June 26, 2024, Dominique Devienne <ddevienne(at)gmail(dot)com> wrote:

> Only session_user
> is representative of the caller, and reliable (modulo SUPERUSER and
> SET AUTHORIZATION, but that's a different story and kinda normal)
>

Why can you not use session_user then?

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Isaac Morland 2024-06-26 12:58:17 Re: current_role of caller of a DEFINER function
Previous Message Dominique Devienne 2024-06-26 12:25:30 Re: current_role of caller of a DEFINER function