Re: [GENERAL] Interesting streaming replication issue - Mailing list pgsql-general

From James Sewell
Subject Re: [GENERAL] Interesting streaming replication issue
Date
Msg-id CAANVwEu8pqiQe9ZPJZDg3bnKsxyHBxji58CJB_MKHm9eRV5hDg@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Interesting streaming replication issue  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: [GENERAL] Interesting streaming replication issue  (James Sewell <james.sewell@jirotech.com>)
List pgsql-general


are you sure you're scp'ing from the archive, not from pg_xlog?

Yes:

restore_command = 'scp -o StrictHostKeyChecking=no 10.154.19.30:/archive/xlog//%f %p'

Although you are right - that would almost make sense if I had done that!

Sounds a lot like a cleanup process on your archive directory or something getting in the way. Are the logs pg is asking for in that archive dir?

That's the strange thing - if you look at the log not only are they there, the standby has already retrieved them.

It's then asking for the log again via the stream.
--
James Sewell,
PostgreSQL Team Lead / Solutions Architect 

 

Suite 112, Jones Bay Wharf, 26-32 Pirrama Road, Pyrmont NSW 2009


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: [GENERAL] Monitoring of a hot standby with a largely idle master
Next
From: Jeff Janes
Date:
Subject: Re: [GENERAL] Index Only Scan and Heap Fetches