mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
pgindent run for 9.5
This commit is contained in:
14
src/backend/utils/cache/relcache.c
vendored
14
src/backend/utils/cache/relcache.c
vendored
@ -873,7 +873,7 @@ equalPolicy(RowSecurityPolicy *policy1, RowSecurityPolicy *policy2)
|
||||
return false;
|
||||
if (policy1->hassublinks != policy2->hassublinks)
|
||||
return false;
|
||||
if (strcmp(policy1->policy_name,policy2->policy_name) != 0)
|
||||
if (strcmp(policy1->policy_name, policy2->policy_name) != 0)
|
||||
return false;
|
||||
if (ARR_DIMS(policy1->roles)[0] != ARR_DIMS(policy2->roles)[0])
|
||||
return false;
|
||||
@ -906,8 +906,8 @@ equalPolicy(RowSecurityPolicy *policy1, RowSecurityPolicy *policy2)
|
||||
static bool
|
||||
equalRSDesc(RowSecurityDesc *rsdesc1, RowSecurityDesc *rsdesc2)
|
||||
{
|
||||
ListCell *lc,
|
||||
*rc;
|
||||
ListCell *lc,
|
||||
*rc;
|
||||
|
||||
if (rsdesc1 == NULL && rsdesc2 == NULL)
|
||||
return true;
|
||||
@ -922,10 +922,10 @@ equalRSDesc(RowSecurityDesc *rsdesc1, RowSecurityDesc *rsdesc2)
|
||||
/* RelationBuildRowSecurity should build policies in order */
|
||||
forboth(lc, rsdesc1->policies, rc, rsdesc2->policies)
|
||||
{
|
||||
RowSecurityPolicy *l = (RowSecurityPolicy *) lfirst(lc);
|
||||
RowSecurityPolicy *r = (RowSecurityPolicy *) lfirst(rc);
|
||||
RowSecurityPolicy *l = (RowSecurityPolicy *) lfirst(lc);
|
||||
RowSecurityPolicy *r = (RowSecurityPolicy *) lfirst(rc);
|
||||
|
||||
if (!equalPolicy(l,r))
|
||||
if (!equalPolicy(l, r))
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -3460,7 +3460,7 @@ RelationCacheInitializePhase3(void)
|
||||
{
|
||||
RelationBuildRowSecurity(relation);
|
||||
|
||||
Assert (relation->rd_rsdesc != NULL);
|
||||
Assert(relation->rd_rsdesc != NULL);
|
||||
restart = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user