Re: Transaction Snapshots and Hot Standby

Поиск
Список
Период
Сортировка
От Chris Browne
Тема Re: Transaction Snapshots and Hot Standby
Дата
Msg-id 87sks6zr74.fsf@dba2.int.libertyrms.com
обсуждение исходный текст
Ответ на Transaction Snapshots and Hot Standby  (Simon Riggs <simon@2ndQuadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] to_date() validation
Следующее
От: "Brendan Jurd"
Дата:
Сообщение: Re: [PATCHES] to_date() validation