Обсуждение: Duplicate "SELECT current_user;"

Поиск
Список
Период
Сортировка

Duplicate "SELECT current_user;"

От
PG Doc comments form
Дата:
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;"

От
Tom Lane
Дата:
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