pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Frost <jeff@pgexperts.com>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Soni M <diptatapa@gmail.com>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgres Replaying WAL slowly
Date: Mon, 30 Jun 2014 15:32:30 -0400
Message-ID: <20300.1404156750@sss.pgh.pa.us> (raw )
In-Reply-To: <F3E1168D-8D49-407E-A8B7-B3ED81C93DCB@pgexperts.com >
References: <CAAMgDXm5Y9QPELKvCGBrFvPcuR0ENVA1tEYRcazhDSxs6xnX5w@mail.gmail.com >
<53AFCEE3.4080009@vmware.com >
<CAAMgDXnKknBDk+Zb3BXau1cKV7y1A0vd9CJpX=vkSTXVGBrZwA@mail.gmail.com >
<53B10C4C.8090701@vmware.com >
<CAAMgDX=c8_6tutCDNiu38Z4wguKMGbhqznVNyMiOC5PZBpn1Fw@mail.gmail.com >
<53B18CE0.4060501@vmware.com >
<20140630171416.GK21422@awork2.anarazel.de >
<CAAMgDXnT8cQbwxcNXfFKONrRVAKoGhR-3FWYSX_5gJcFrEMPMQ@mail.gmail.com >
<8DA8C140-818D-4184-AAE6-CA37278B983C@pgexperts.com >
<20140630183908.GT26930@awork2.anarazel.de >
<0A7B96D4-DB10-49A8-A268-F28960F2E137@pgexperts.com >
<F3E1168D-8D49-407E-A8B7-B3ED81C93DCB@pgexperts.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Jeff Frost <jeff@pgexperts.com> writes:
> Sampling pg_locks on the primary shows ~50 locks with ExclusiveLock mode:
> mode | count
> --------------------------+-------
> AccessExclusiveLock | 11
> AccessShareLock | 2089
> ExclusiveLock | 46
> RowExclusiveLock | 81
> RowShareLock | 17
> ShareLock | 4
> ShareUpdateExclusiveLock | 5
That's not too helpful if you don't pay attention to what the lock is on;
it's likely that all the ExclusiveLocks are on transactions' own XIDs,
which isn't relevant to the standby's behavior. The AccessExclusiveLocks
are probably interesting though --- you should look to see what those
are on.
regards, tom lane
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
view thread (33+ messages) latest in thread
Message-ID: <20300.1404156750@sss.pgh.pa.us>
Permalink: ../20300.1404156750@sss.pgh.pa.us/
Also on: postgresql.org/message-id/20300.1404156750@sss.pgh.pa.us
copy link · copy postgr.es
reply 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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, jeff@pgexperts.com, andres@2ndquadrant.com, diptatapa@gmail.com, hlinnakangas@vmware.com
Subject: Re: Postgres Replaying WAL slowly
In-Reply-To: <20300.1404156750@sss.pgh.pa.us>
* 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