Duplicate "SELECT current_user;"

Started by PG Bug reporting formabout 5 years ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

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.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: Duplicate "SELECT current_user;"

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