Re: Logical replication without a Primary Key

Поиск
Список
Период
Сортировка
От Petr Jelinek
Тема Re: Logical replication without a Primary Key
Дата
Msg-id 786d987f-97f3-037d-b4e5-b9e30fcc8487@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Logical replication without a Primary Key  ("Joshua D. Drake" <jd@commandprompt.com>)
Ответы Re: Logical replication without a Primary Key  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 07/12/17 15:32, Joshua D. Drake wrote:
> On 12/07/2017 05:30 AM, Peter Eisentraut wrote:
>>
>>> How does that work? Is it using one of the hidden columns on a row?
>> It means that for example if an update record is produced, the entire
>> row is included in the record as the key.
> 
> Thanks Peter, Craig also responded,
> 
> The confusion I have is what if we have two rows that are identical and
> now that I think about it we would just update both rows, yes? That
> would make sense because it would produce two updated rows.
> 

No it won't, it will update only one row, it does not try to find
multiple matching rows.

-- 
  Petr Jelinek                  http://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Logical replication without a Primary Key
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Postgres with pthread