Re: CREATE OR REPLACE FUNCTION statement just sitting there

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: CREATE OR REPLACE FUNCTION statement just sitting there
Date: 2018-11-06 13:35:57
Message-ID: 20181106133557.fj3pejzb5vg6jgjz@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marcio Meneguzzi 2018-11-06 13:36:33 PgAgent on Windows
Previous Message Ron 2018-11-06 12:28:26 Re: CREATE OR REPLACE FUNCTION statement just sitting there