Accept invalidation messages in InitializeSessionUserId().
authorThomas Munro <tmunro@postgresql.org>
Fri, 13 Jul 2018 04:12:03 +0000 (16:12 +1200)
committerThomas Munro <tmunro@postgresql.org>
Fri, 13 Jul 2018 04:19:15 +0000 (16:19 +1200)
commite8d9caa436db2931613d7cb4a4a8b3933d5f6ded
tree6278939b42427e18a2f0af34c140ff8ff2f8adb7
parent387a5cfb94f041ffe18d03ccc4063c626bb4b73e
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: http://postgr.es/m/CAEepm%3D3_h0_cgmz5PMyab4xk_OFrg6G5VCN%3DnF4chFXM9iFOqA%40mail.gmail.com
src/backend/utils/init/miscinit.c