From: Pepe TD Vo <pepevo@yahoo.com>
To: Avinash Kumar <avinash.vallarapu@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: database lagging
Date: Fri, 23 Jul 2021 19:28:23 +0000 (UTC)
Message-ID: <2031576315.606187.1627068503597@mail.yahoo.com> (raw)
In-Reply-To: <CAN0TujfnzsDRU=iK6pJFdMwMj6fGqpH7n2S+G8r_5kJ0S=7Mgg@mail.gmail.com>
References: <1396983439.574027.1627062741652.ref@mail.yahoo.com>
<1396983439.574027.1627062741652@mail.yahoo.com>
<CAN0TujfnzsDRU=iK6pJFdMwMj6fGqpH7n2S+G8r_5kJ0S=7Mgg@mail.gmail.com>
yes, I'm running replication database. Parameters below are on both master and slave's postgresql.conf
wal_level = replicasynchronous_commit = onsynchronous_standby_names ='*'
server storage is fine. Plenty of spaces on pg_wal (local), only 5% used from 80G. Look like only all write have problems and read is ok.
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, 03:11:58 PM EDT, Avinash Kumar <avinash.vallarapu@gmail.com> wrote:
Hi,
On Fri, Jul 23, 2021 at 2:52 PM Pepe TD Vo <pepevo@yahoo.com> wrote:
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 sentCREATE ROLE
I would only expect such a behaviour when there is Synchronous Replication enabled but the Standby is not reachable.
Check the parameters : synchronous_mode combined with synchronous_standby_names.
postgres=# ALTER ROLE appuser NOSUPERUSER;^CCancel request sentALTER ROLE
postgres=# ALTER ROLE appuser NOREPLICATION;^CCancel request sentALTER ROLE
postgres=# ALTER ROLE appuser NOCREATEROLE;^CCancel request sentALTER ROLE
postgres=# ALTER ROLE appuser NOHERIT;^CCancel request sentALTER ROLE
--
Regards,
Avinash VallarapuCEO,MigOps Inc.Email: avi@migops.com
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: pepevo@yahoo.com, avinash.vallarapu@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: database lagging
In-Reply-To: <2031576315.606187.1627068503597@mail.yahoo.com>
* 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