Re: database lagging

From: Pepe TD Vo <pepevo(at)yahoo(dot)com>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>, Alvaro Aguayo <aaguayo(at)opensysperu(dot)com>
Subject: Re: database lagging
Date: 2021-07-23 18:27:01
Message-ID: 678607417.590943.1627064821704@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

nothing is running. Only psql and background writer, checkpointermain, walwritermain, autovacuummain, logicalLauncherMain from pg_stat_activity (6 rows) nothing else is running
no row select on "select relation::regclass, * from pg_locks where not granted;
select on "select relation::regclass, * from pg_locks;
2 rows for pg_locks relation for AccessShareLock and virtualxid for ExclusiveLock.
What else can I check and correct ?

Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success

On Friday, July 23, 2021, 02:07:15 PM EDT, Alvaro Aguayo <aaguayo(at)opensysperu(dot)com> wrote:

<!--#yiv9051853937 _filtered {} _filtered {}#yiv9051853937 #yiv9051853937 p.yiv9051853937MsoNormal, #yiv9051853937 li.yiv9051853937MsoNormal, #yiv9051853937 div.yiv9051853937MsoNormal {margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv9051853937 span.yiv9051853937EmailStyle18 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv9051853937 .yiv9051853937MsoChpDefault {font-size:10.0pt;} _filtered {}#yiv9051853937 div.yiv9051853937WordSection1 {}-->
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.

 

Regards,

 

Alvaro Aguayo

Operations Manager

Open Comb Systems E.I.R.L.

 

From: Pepe TD Vo <pepevo(at)yahoo(dot)com>
Sent: 23 July 2021 12:52
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: database lagging

 

I am doing CIS Benchmart on Postgreql 12.  After alter parameters and when I tried to create a new role.  It's lagging and didn't prompt out the result, until I hit the ctl C key.  Even alter role.  All I needed to hit ctl C key if not, it hung there for ever.  Is there a way to fix it?

 

postgres=# create role appuser;

^CCancel request sent

CREATE ROLE

 

postgres=# ALTER ROLE appuser NOSUPERUSER;

^CCancel request sent

ALTER ROLE

 

 

postgres=# ALTER ROLE appuser NOREPLICATION;

^CCancel request sent

ALTER ROLE

 

postgres=# ALTER ROLE appuser NOCREATEROLE;

^CCancel request sent

ALTER ROLE

 

postgres=# ALTER ROLE appuser NOHERIT;

^CCancel request sent

ALTER ROLE

 

 

 

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Vijaykumar Jain 2021-07-23 18:29:29 Re: database lagging
Previous Message David Steele 2021-07-23 18:12:21 Re: What's the dfifference between pg_start_backup+copy+pg_stop_backup+WAL vs. pg_start_backup+pg_stop_backup+copy+WAL?