Re: SYSTEM_USER reserved word implementation

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: SYSTEM_USER reserved word implementation
Date: 2022-06-22 14:12:26
Message-ID: 28b4a9ef-5103-f117-99e1-99ae5a86a6e8@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 6/22/22 09:49, Tom Lane wrote:
> "Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com> writes:
>> Please find attached a patch proposal to make use of the SYSTEM_USER so
>> that it returns the authenticated identity (if any) (aka authn_id in the
>> Port struct).
>
> On what grounds do you argue that that's the appropriate meaning of
> SYSTEM_USER?

What else do you imagine it might mean?

Here is SQL Server interpretation for example:

https://docs.microsoft.com/en-us/sql/t-sql/functions/system-user-transact-sql?view=sql-server-ver16

And Oracle:
http://luna-ext.di.fc.ul.pt/oracle11g/timesten.112/e13070/ttsql257.htm#i1120532

"SYSTEM_USER

Returns the name of the current data store user
as identified by the operating system."

Seems equivalent.

--
Joe Conway
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2022-06-22 14:38:41 ALTER TABLE uses a bistate but not for toast tables
Previous Message Robert Haas 2022-06-22 14:09:28 Re: pg15b1: FailedAssertion("val > base", File: "...src/include/utils/relptr.h", Line: 67, PID: 30485)