pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Kirk Parker <khp@equatoria.us>
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Typo in PL/pgSQL trigger Example 43.4?
Date: Mon, 09 Oct 2023 09:45:46 -0400
Message-ID: <133678.1696859146@sss.pgh.pa.us> (raw)
In-Reply-To: <CBCF44BE-B598-4E15-9668-E1168DA0C34D@yesql.se>
References: <CAA_1=909ZR0ofmS5_JKonYwf+AdrU4_wojm5ckaB50s2EibzpQ@mail.gmail.com>
	<ZSBgYzT3vh7YOsew@momjian.us>
	<CANwZ8rmN_Eb0h0hoMRS8Feftaik0z89PxVsKg+cP+PctuOq=Qg@mail.gmail.com>
	<CAKFQuwZW2qTAavt8R1c20wW_OOn9YZ9Eoz4oc8jy3+Y2en0keQ@mail.gmail.com>
	<3179621.1696710121@sss.pgh.pa.us>
	<CBCF44BE-B598-4E15-9668-E1168DA0C34D@yesql.se>

Daniel Gustafsson <daniel@yesql.se> writes:
>> On 7 Oct 2023, at 22:22, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Yeah, either way has the same result.  However, I wonder if we should
>> change this example to use current_user for clarity.  It does look
>> more like it's intended to be a variable or column reference than
>> a built-in function.

> Agreed, and "user" is a hard search term to use for discovering what it is.  +1
> for changing to current_user.

OK, I'll take care of this later today.

			regards, tom lane





view thread (6+ messages)

Message-ID: <133678.1696859146@sss.pgh.pa.us>
Permalink:  ../133678.1696859146@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/133678.1696859146@sss.pgh.pa.us

 · 

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: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel@yesql.se, david.g.johnston@gmail.com, khp@equatoria.us, pgsql-docs@lists.postgresql.org
  Subject: Re: Typo in PL/pgSQL trigger Example 43.4?
  In-Reply-To: <133678.1696859146@sss.pgh.pa.us>

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

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