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

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Cache invalidation after authentication (on-the-fly role creation)
Date: 2018-07-03 23:44:21
Message-ID: 20180703234421.aduuhv7xresrd2s6@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2018-07-03 23:52:48 Re: PATCH: pgbench - option to build using ppoll() for larger connection counts
Previous Message Srinivas Karthik V 2018-07-03 23:34:31 Re: Bulk Insert into PostgreSQL