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

From: Andres Freund <andres(at)anarazel(dot)de>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Thomas Munro <thomas(dot)munro(at)enterprisedb(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 00:10:32
Message-ID: 20180704001032.pgojokf5qwhyxmzj@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2018-07-03 19:44:21 -0400, Alvaro Herrera wrote:
> On 2018-Jul-04, Thomas Munro wrote:
>
> > Hello hackers,
> >
> > I'd like to do this to postinit.c:
> >
> > PerformAuthentication(MyProcPort);
> > + AcceptInvalidationMessages();
> > InitializeSessionUserId(username, useroid);
> >
> > Any objections?
>
> Is there a measurable performance overhead to this change?

I can't see it being relevant here. We accept inval message in plenty
other places, and in comparison to session startup it should be just
about inmeasurable.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tsunakawa, Takayuki 2018-07-04 00:27:18 How can we submit code patches that implement our (pending) patents?
Previous Message Andrew Dunstan 2018-07-03 23:52:48 Re: PATCH: pgbench - option to build using ppoll() for larger connection counts