Thread: Duplicate "SELECT current_user;"

Duplicate "SELECT current_user;"

From
PG Doc comments form
Date:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/ddl-rowsecurity.html
Description:

On this page I see the following example:
----cut----
=> SELECT current_user;
 current_user 
--------------
 admin
(1 row)

=> select inet_client_addr();
 inet_client_addr 
------------------
 127.0.0.1
(1 row)

=> SELECT current_user;
 current_user 
--------------
 admin
(1 row)
----cut----

One of executions of "SELECT current_user;" is redundant and can be removed.

Re: Duplicate "SELECT current_user;"

From
Tom Lane
Date:
PG Doc comments form <noreply@postgresql.org> writes:
> One of executions of "SELECT current_user;" is redundant and can be removed.

Yeah, I think you're right.  Done in HEAD.

            regards, tom lane