GetSharedSecurityLabel() should be callable before shared relcaches are available

Jeff Davis <pgsql@j-davis.com>

From: Jeff Davis <pgsql@j-davis.com>
To: pgsql-bugs@postgresql.org
Date: 2021-10-08T20:55:01Z
Lists: pgsql-bugs

Attachments

If I understand correctly, it's intended that GetSharedSecurityLabel()
should be callable before the shared relcaches are built. If so, the
systable_beginscan can't pass an unconditional 'true' for indexOK.

Patch attached.

Regards,
	Jeff Davis

Commits

  1. Check criticalSharedRelcachesBuilt in GetSharedSecurityLabel().