Re: Cache invalidation after authentication (on-the-fly role creation)

From: Andres Freund <andres(at)anarazel(dot)de>
To: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Cache invalidation after authentication (on-the-fly role creation)
Date: 2018-07-04 04:35:57
Message-ID: 20180704043557.x4rcpv5ysbe4valj@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox
Thread:
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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-07-04 04:59:12 Re: [HACKERS] WAL logging problem in 9.4.3?
Previous Message Michael Paquier 2018-07-04 04:35:23 Re: Cache invalidation after authentication (on-the-fly role creation)