Re: database lagging - Mailing list pgsql-admin

From Vijaykumar Jain
Subject Re: database lagging
Date
Msg-id CAM+6J947jMMhHBbRYgx85ni8EdfXxS95C5WaQKFQ7N3Yd-X=NA@mail.gmail.com
Whole thread Raw
In response to Re: database lagging  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
Responses Re: database lagging
List pgsql-admin


On Fri, 23 Jul 2021 at 23:59, Vijaykumar Jain <vijaykumarjain.github@gmail.com> wrote:

On Fri, 23 Jul 2021 at 23:37, Alvaro Aguayo <aaguayo@opensysperu.com> wrote:

Is there any other thing running with that database? If so, I would consider a locking problem. CREATE/ALTER ROLE should never take too much time, unless there is some kind of lock in a global catalog.


I am not so sure this is lock issue? Ctrl C would not complete the command if it were a lock issue?
Pepe can confirm if he sees any locks though ?

Hey Pepe,
Can you let us know
what postgres version?
what psql version?
what OS?

also, is it possible for you to collect stack trace of the hanging process?

also is it only hanging in interactive mode? 
psql -c 'alter role foobar superuser;'   
does this complete fine ?


also forgot to ask.
does this only hang only alter role commands ?
or any other command /query like 
\du
select 1;
create table t(id int);


pgsql-admin by date:

Previous
From: Vijaykumar Jain
Date:
Subject: Re: database lagging
Next
From: Pepe TD Vo
Date:
Subject: Re: database lagging