Re: Cache invalidation after authentication (on-the-fly rolecreation) - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Cache invalidation after authentication (on-the-fly rolecreation)
Date
Msg-id 20180704043557.x4rcpv5ysbe4valj@alap3.anarazel.de
Whole thread Raw
In response to Re: Cache invalidation after authentication (on-the-fly role creation)  (Thomas Munro <thomas.munro@enterprisedb.com>)
Responses Re: Cache invalidation after authentication (on-the-fly role creation)
List 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


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Cache invalidation after authentication (on-the-fly rolecreation)
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] WAL logging problem in 9.4.3?