Re: Hot Standby 0.2.1

Поиск
Список
Период
Сортировка
Искать
От
Heikki Linnakangas
Тема
Re: Hot Standby 0.2.1
Дата
Msg-id
4AB878AC.2000403@enterprisedb.com
Ответ на
Re: Hot Standby 0.2.1 (Simon Riggs)
Список
Дерево обсуждения
Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Bernd Helmle <mailings@oopsware.de>
Re: Hot Standby 0.2.1 David Fetter <david@fetter.org>
Re: Hot Standby 0.2.1 Bruce Momjian <bruce@momjian.us>
Re: Hot Standby 0.2.1 Bruce Momjian <bruce@momjian.us>
Re: Hot Standby 0.2.1 Josh Berkus <josh@agliodbs.com>
Re: Hot Standby 0.2.1 Robert Haas <robertmhaas@gmail.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Robert Haas <robertmhaas@gmail.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Marcos Luis Ortiz Valmaseda <mlortiz@uci.cu>
Re: Hot Standby 0.2.1 Dimitri Fontaine <dfontaine@hi-media.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Robert Haas <robertmhaas@gmail.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Bruce Momjian <bruce@momjian.us>
Re: Hot Standby 0.2.1 Robert Haas <robertmhaas@gmail.com>
Re: Hot Standby 0.2.1 Andrew Dunstan <andrew@dunslane.net>
Re: Hot Standby 0.2.1 "Joshua D. Drake" <jd@commandprompt.com>
Re: Hot Standby 0.2.1 "Joshua D. Drake" <jd@commandprompt.com>
Re: Hot Standby 0.2.1 Bruce Momjian <bruce@momjian.us>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Josh Berkus <josh@agliodbs.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Josh Berkus <josh@agliodbs.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Alvaro Herrera <alvherre@commandprompt.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Andrew Dunstan <andrew@dunslane.net>
Re: Hot Standby 0.2.1 Alvaro Herrera <alvherre@commandprompt.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Jeff Janes <jeff.janes@gmail.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Jeff Janes <jeff.janes@gmail.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Hot Standby 0.2.1 Simon Riggs <simon@2ndQuadrant.com>
Re: Hot Standby 0.2.1 Alvaro Herrera <alvherre@commandprompt.com>
Re: Hot Standby 0.2.1 Jeff Janes <jeff.janes@gmail.com>
Re: Hot Standby 0.2.1 Tom Lane <tgl@sss.pgh.pa.us>
Simon Riggs wrote:
> On Mon, 2009-09-21 at 14:01 +0100, Simon Riggs wrote:
>> On Mon, 2009-09-21 at 13:50 +0300, Heikki Linnakangas wrote:
> 
>>> is this that we seem to be missing conflict
>>> resolution for GiST index tuples deleted by the kill_prior_tuples
>>> mechanism. Unless I'm missing something, we need similar handling there
>>> that we have in b-tree.
>> OK, I agree with that. Straightforward change. Thanks very much.
>>
>> I marked the comment to indicate that the handling for GIST and GIN
>> indexes looked dubious to me also. I had the earlier "it is safe"
>> comments but that was before we looked at the kill prior tuples issue.
> 
> ISTM I looked at this too quickly.
> 
> kill_prior_tuple is only ever set by these lines, after scan starts:
> 
>     if (!scan->xactStartedInRecovery)
>         scan->kill_prior_tuple = scan->xs_hot_dead;
> 
> which is set in indexam.c, not within any particular am. So the coding,
> as submitted, covers all index types, current and future.

That just stops more tuples from being killed in the standby. I was
thinking that we need similar conflict resolution in GiST that we do
with b-tree delete records, to stop killed tuples from being deleted
while they might still be needed in the standby.

But looking closer at GiST, it seems that GiST doesn't actually do that;
killed tuples are not removed at page splits, but only by VACUUM. So
that's not an issue after all.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com

В списке pgsql-hackers по дате отправления
От: Jeevan Chalke
Дата:
От: Simon Riggs
Дата:
Сообщение: Re: Hot Standby 0.2.1
FAQ