Re: Cache invalidation after authentication (on-the-fly role creation)
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-07-04T04:35:57Z
Lists: pgsql-hackers
On 2018-07-04 16:25:18 +1200, Thomas Munro wrote: > @@ -745,6 +746,7 @@ InitPostgres(const char *in_dbname, Oid dboid, const char *username, > /* normal multiuser case */ > Assert(MyProcPort != NULL); > PerformAuthentication(MyProcPort); > + AcceptInvalidationMessages(); > InitializeSessionUserId(username, useroid); > am_superuser = superuser(); FWIW, a comment explaining why it's done there seems appropriate. - Andres
Commits
-
Accept invalidation messages in InitializeSessionUserId().
- e8d9caa436db 12.0 landed