mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Initial pgindent and pgperltidy run for v13.
Includes some manual cleanup of places that pgindent messed up,
most of which weren't per project style anyway.
Notably, it seems some people didn't absorb the style rules of
commit c9d297751
, because there were a bunch of new occurrences
of function calls with a newline just after the left paren, all
with faulty expectations about how the rest of the call would get
indented.
This commit is contained in:
@ -303,8 +303,8 @@ connect_pg_server(ForeignServer *server, UserMapping *user)
|
||||
/*
|
||||
* Check that non-superuser has used password to establish connection;
|
||||
* otherwise, he's piggybacking on the postgres server's user
|
||||
* identity. See also dblink_security_check() in contrib/dblink
|
||||
* and check_conn_params.
|
||||
* identity. See also dblink_security_check() in contrib/dblink and
|
||||
* check_conn_params.
|
||||
*/
|
||||
if (!superuser_arg(user->userid) && UserMappingPasswordRequired(user) &&
|
||||
!PQconnectionUsedPassword(conn))
|
||||
@ -361,6 +361,7 @@ UserMappingPasswordRequired(UserMapping *user)
|
||||
foreach(cell, user->options)
|
||||
{
|
||||
DefElem *def = (DefElem *) lfirst(cell);
|
||||
|
||||
if (strcmp(def->defname, "password_required") == 0)
|
||||
return defGetBoolean(def);
|
||||
}
|
||||
|
Reference in New Issue
Block a user