Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit20f7857

Browse files
committed
Check criticalSharedRelcachesBuilt in GetSharedSecurityLabel().
An extension may want to call GetSecurityLabel() on a shared objectbefore the shared relcaches are fully initialized. For instance, aClientAuthentication_hook might want to retrieve the security label ona role.Discussion:https://postgr.es/m/ecb7af0b26e3be1d96d291c8453a86f1f82d9061.camel@j-davis.comBackpatch-through: 9.6
1 parentfdd6a4d commit20f7857

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/commands/seclabel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ GetSharedSecurityLabel(const ObjectAddress *object, const char *provider)
169169

170170
pg_shseclabel=table_open(SharedSecLabelRelationId,AccessShareLock);
171171

172-
scan=systable_beginscan(pg_shseclabel,SharedSecLabelObjectIndexId, true,
173-
NULL,3,keys);
172+
scan=systable_beginscan(pg_shseclabel,SharedSecLabelObjectIndexId,
173+
criticalSharedRelcachesBuilt,NULL,3,keys);
174174

175175
tuple=systable_getnext(scan);
176176
if (HeapTupleIsValid(tuple))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp