public inbox for pgsql-performance@postgresql.org  
help / color / mirror / Atom feed
From: Ulf Lohbrügge <ulf.lohbruegge@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Slow execution of SET ROLE, SET search_path and RESET ROLE
Date: Wed, 8 Nov 2017 10:31:42 +0100
Message-ID: <CABZYQRJHhYEGXP6W19GoXajC6Ne3N+eUsn3sn_iC3a91xC=QvA@mail.gmail.com> (raw)
In-Reply-To: <13706.1510098347@sss.pgh.pa.us>
References: <CABZYQR+Ku+iLFhqwY89QrrnKG9wKxckmssDG2rYKESojiohRgQ@mail.gmail.com>
	<20171107151108.3jtmta4xrgmuyrqf@alap3.anarazel.de>
	<CABZYQR+GE7mV7qiTFGO3EqxdqV_TmSQyzY3ghSE1OfHabZcG7g@mail.gmail.com>
	<20171107194517.pabhi4czbtiasb2f@alap3.anarazel.de>
	<CABZYQR+hepKxvDeMReZLcrYYmrhwFU3aX5qGG2QvDYT4V0wHDQ@mail.gmail.com>
	<CAOR=d=3t=y4A+5+iuSaPWj9zgKNin=9rf9+jvR4TAB+g_tXMVA@mail.gmail.com>
	<CABZYQRKGG6AohYi8U9aX+=iYidyWxCn8ratkiiN7YytmFJESNw@mail.gmail.com>
	<13706.1510098347@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

2017-11-08 0:45 GMT+01:00 Tom Lane <tgl@sss.pgh.pa.us>:

> =?UTF-8?Q?Ulf_Lohbr=C3=BCgge?= <ulf.lohbruegge@gmail.com> writes:
> > I just ran "check_postgres.pl --action=bloat" and got the following
> output:
> > ...
> > Looks fine, doesn't it?
>
> A possible explanation is that something is taking an exclusive lock
> on some system catalog and holding it for a second or two.  If so,
> turning on log_lock_waits might provide some useful info.
>
>                         regards, tom lane
>

I just checked my configuration and found out that "log_lock_waits" was
already enabled.

Unfortunately there is no log output of locks when those long running "SET
ROLE" statements occur.

Regards,
Ulf


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: ulf.lohbruegge@gmail.com, tgl@sss.pgh.pa.us, scott.marlowe@gmail.com, andres@anarazel.de
  Subject: Re: Slow execution of SET ROLE, SET search_path and RESET ROLE
  In-Reply-To: <CABZYQRJHhYEGXP6W19GoXajC6Ne3N+eUsn3sn_iC3a91xC=QvA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox