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

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Cache invalidation after authentication (on-the-fly rolecreation)
Дата
Msg-id 20180704001032.pgojokf5qwhyxmzj@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Cache invalidation after authentication (on-the-fly rolecreation)  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Cache invalidation after authentication (on-the-fly role creation)  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: PATCH: pgbench - option to build using ppoll() for largerconnection counts
Следующее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: How can we submit code patches that implement our (pending) patents?