Re: Replaying 48 WAL files takes 80 minutes - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: Replaying 48 WAL files takes 80 minutes
Date
Msg-id 20121029142901.GE12961@alvh.no-ip.org
Whole thread Raw
In response to Replaying 48 WAL files takes 80 minutes  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Responses Re: Replaying 48 WAL files takes 80 minutes  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-performance
Albe Laurenz wrote:
> I am configuring streaming replication with hot standby
> with PostgreSQL 9.1.3 on RHEL 6 (kernel 2.6.32-220.el6.x86_64).
> PostgreSQL was compiled from source.
>
> It works fine, except that starting the standby took for ever:
> it took the system more than 80 minutes to replay 48 WAL files
> and connect to the primary.
>
> Can anybody think of an explanation why it takes that long?

Can you do a quick xlogdump of those files?  Maybe there is something
unusual (say particular types of GIN/GiST index updates) on the files
that take longer.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


pgsql-performance by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: Prepared statements slow in 9.2 still (bad query plan)
Next
From: "Albe Laurenz"
Date:
Subject: Re: Replaying 48 WAL files takes 80 minutes