From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Williams, Alex <awilliams@teamdrg.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Question on Hot Standby in PostgreSQL
Date: Mon, 23 Nov 2015 13:24:07 -0700
Message-ID: <88C8194B-0F69-4CEA-9DB4-5A21D156D2DE@elevated-dev.com> (raw)
In-Reply-To: <D274E3C1.1113E8%awilliams@dresourcesgroup.com>
References: <D274E3C1.1113E8%awilliams@dresourcesgroup.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On Nov 20, 2015, at 12:50 PM, Williams, Alex <awilliams@teamdrg.com> wrote:
>
> However, I thought with the use of MVCC,
> an active query on the slave (long running, 30 seconds+) can run reading
> from row xid versions/snapshot...
The problem is that the master could well make changes that would remove rows in that snapshot because the master does not know anything about the rows that need preserving for the replica's query.
That said, IIRC there may be something in 9.4 or 9.5 which provides for the replica to send that info to the server in order to coordinate things, but I haven't used that and so cannot offer more.
--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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: scott_ribe@elevated-dev.com, awilliams@teamdrg.com
Subject: Re: Question on Hot Standby in PostgreSQL
In-Reply-To: <88C8194B-0F69-4CEA-9DB4-5A21D156D2DE@elevated-dev.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