Re: Transaction Snapshots and Hot Standby - Mailing list pgsql-hackers

From Chris Browne
Subject Re: Transaction Snapshots and Hot Standby
Date
Msg-id 87sks6zr74.fsf@dba2.int.libertyrms.com
Whole thread Raw
In response to Transaction Snapshots and Hot Standby  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
heikki.linnakangas@enterprisedb.com (Heikki Linnakangas) writes:
> Simon Riggs wrote:
>> Taking snapshots from primary has a few disadvantages
>>
>>  ...
>>       * snapshots on primary prevent row removal (but this was also an
>>         advantage of this technique!)
>
> That makes it an awful solution for high availability. A backend hung
> in transaction-in-progress state in the slave will prevent row removal
> on the master. Isolating the master from queries done performed in the
> slave is exactly the reason why people use hot standby. And running
> long reporting queries in the standby is again a very typical use case.

I agree that this is a demerit to this approach.

Whether or not, on balance, it makes it an 'awful solution for high
availability' is much more in the eye of the beholder, and NOT obvious
on the face of it.
-- 
let name="cbbrowne" and tld="linuxdatabases.info" in name ^ "@" ^ tld;;
http://linuxfinances.info/info/sgml.html
Question: How many surrealists does it take to change a light bulb?

Answer: Two, one to hold the giraffe, and the other to fill the bathtub       with brightly colored machine tools.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] to_date() validation
Next
From: "Brendan Jurd"
Date:
Subject: Re: [PATCHES] to_date() validation