Re: Future In-Core Replication

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Future In-Core Replication
Дата
Msg-id CA+TgmoYCC37GHcA0-0cKwiLGvBY7e0AbgVfY52o756A-VVdX-g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Future In-Core Replication  (Hannu Krosing <hannu@krosing.net>)
Ответы Re: Future In-Core Replication  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On Fri, May 4, 2012 at 8:32 AM, Hannu Krosing <hannu@krosing.net> wrote:
> For logical we don't really need to uniquely identify such rows - it
> should sufficient if we just update exactly one of the matching rows.
>
> The way to do this is to put all fields of the OLD.* tuple in the WHERE
> clause and then update just one matching row.
>
> IIRC updating (or deleting) CURRENT OF a cursor is currently supported
> only in pl/pgsql so this needs to be done using a plpgsql cursor.
>
> If the table has no indexes or index lookup returns lots of rows, then
> this is bound to be slow, but in this case it was probably slow on
> master too :)

I was about to write a reply saying exactly this, but you said it
better than I would have been able to manage.

I think this is all exactly right.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: CLOG extension
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Future In-Core Replication