public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: [email protected] <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Assign TEXT/NAME variable type to SET SESSION AUTHORIZATION
Date: Wed, 4 Sep 2024 06:15:12 -0700
Message-ID: <CAKFQuwbA+AXMZjALTAkRXviHEEE7bQsRtLaErTaSkY+Zm3RmEA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Wednesday, September 4, 2024, <[email protected]> wrote:

>
> _user := 'postgres'::name;
> end if;
>
> SET SESSION AUTHORIZATION _user::name;
> end;
> $body$
> ;
> ```
> ---
> Unfortunately, I don't know how to convert it so that SET SESSION
> AUTHORIZATION works properly.
>
>
Dynamic SQL, I.e., the execute statement.

David J.


view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Assign TEXT/NAME variable type to SET SESSION AUTHORIZATION
  In-Reply-To: <CAKFQuwbA+AXMZjALTAkRXviHEEE7bQsRtLaErTaSkY+Zm3RmEA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox