Re: Logical replication without a Primary Key - Mailing list pgsql-hackers

From Petr Jelinek
Subject Re: Logical replication without a Primary Key
Date
Msg-id 786d987f-97f3-037d-b4e5-b9e30fcc8487@2ndquadrant.com
Whole thread Raw
In response to Re: Logical replication without a Primary Key  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Logical replication without a Primary Key  (Robert Haas <robertmhaas@gmail.com>)
List 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 by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Logical replication without a Primary Key
Next
From: Craig Ringer
Date:
Subject: Re: Postgres with pthread