Accept invalidation messages in InitializeSessionUserId().

Thomas Munro <tmunro@postgresql.org>

Commit: e8d9caa436db2931613d7cb4a4a8b3933d5f6ded
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2018-07-13T04:19:15Z
Releases: 12.0
Accept invalidation messages in InitializeSessionUserId().

If the authentication method modified the system catalogs through a
separate database connection (say, to create a new role on the fly),
make sure syscache sees the changes before we try to find the user.

Author: Thomas Munro
Reviewed-by: Tom Lane, Andres Freund
Discussion: https://postgr.es/m/CAEepm%3D3_h0_cgmz5PMyab4xk_OFrg6G5VCN%3DnF4chFXM9iFOqA%40mail.gmail.com

Files

PathChange+/−
src/backend/utils/init/miscinit.c modified +8 −0

Discussion