Re: random huge delay when recreate a VIEW or FUNCTION

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: catalin(at)plationline(dot)eu
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: random huge delay when recreate a VIEW or FUNCTION
Date: 2016-06-17 13:31:51
Message-ID: CAHyXU0zm5N6WjnPuxc=zx6ihDfkZai3BMS2WiR1+ituV=m8gFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 14, 2016 at 4:59 PM, Catalin Maftei <catalin(at)plationline(dot)eu> wrote:
> when I recreate a VIEW or FUNCTION with a small change I get:
>
> Query returned successfully with no result in 03:58 minutes.

This is almost certainly due to locks. Next time this happens, query
pg_stat_activity and pg_locks -- the information is there to determine
if you are locked and who the locker is. Your view creating query
would be blocked as 'waiting' if that's the case.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vick Khera 2016-06-17 13:39:26 Re: Table ordering in pg_dump
Previous Message Sameer Kumar 2016-06-17 13:15:18 Re: Hot disable WAL archiving