Re: High CPU Usage of "SET ROLE" - Mailing list pgsql-performance

From Tom Lane
Subject Re: High CPU Usage of "SET ROLE"
Date
Msg-id 17063.1540931263@sss.pgh.pa.us
Whole thread Raw
In response to Re: High CPU Usage of "SET ROLE"  (Ulf Lohbrügge <ulf.lohbruegge@gmail.com>)
List pgsql-performance
=?UTF-8?Q?Ulf_Lohbr=C3=BCgge?= <ulf.lohbruegge@gmail.com> writes:
> I think I have found something here. It looks like that the order of
> statements is affecting their duration. I somehow have the feeling that the
> first statement after "RESET ROLE;" experiences a performance degradation.

Hm.  It's well known that the first query executed in a *session* takes
a pretty big performance hit, because of the need to populate the
backend's catalog caches.  I'm not very sure however why "RESET ROLE"
would result in a mass cache flush, if indeed that's what's happening.

            regards, tom lane


pgsql-performance by date:

Previous
From: Ulf Lohbrügge
Date:
Subject: Re: High CPU Usage of "SET ROLE"
Next
From: Jeff Janes
Date:
Subject: Re: High CPU Usage of "SET ROLE"