From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: CREATE OR REPLACE FUNCTION statement just sitting there
Date: Tue, 6 Nov 2018 10:35:57 -0300
Message-ID: <20181106133557.fj3pejzb5vg6jgjz@alvherre.pgsql> (raw)
In-Reply-To: <a8ff2df8-475a-2443-78ac-9d81198d734a@gmail.com>
On 2018-Nov-06, Ron wrote:
> On 11/06/2018 05:34 AM, Alvaro Herrera wrote:
> I did see it, but the https://wiki.postgresql.org/wiki/Lock_Monitoring query
> seems to work (seeing that it regularly shows locks).
>
> Is this query from https://stackoverflow.com/a/43363536/1543618 adequate to
> the task?
>
> |selectpid,usename,pg_blocking_pids(pid)asblocked_by,query asblocked_query
> frompg_stat_activity wherecardinality(pg_blocking_pids(pid))>0;|
Seems a bit short on details ... I would add the queries being run by
those other PIDs, just to understand what might be going on. Now, if
that query returns empty when the CREATE is blocked, then this may be
a red herring.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@2ndquadrant.com, ronljohnsonjr@gmail.com
Subject: Re: CREATE OR REPLACE FUNCTION statement just sitting there
In-Reply-To: <20181106133557.fj3pejzb5vg6jgjz@alvherre.pgsql>
References: <a8ff2df8-475a-2443-78ac-9d81198d734a@gmail.com> <20181106133557.fj3pejzb5vg6jgjz@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox