pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc @ 2020-05-16 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 4+ messages in thread From: Michael Paquier @ 2020-05-16 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix assertion with relation using REPLICA IDENTITY FULL in subscriber In a logical replication subscriber, a table using REPLICA IDENTITY FULL which has a primary key would try to use the primary key's index available to scan for a tuple, but an assertion only assumed as correct the case of an index associated to REPLICA IDENTITY USING INDEX. This commit corrects the assertion so as the use of a primary key index is a valid case. Reported-by: Dilip Kumar Analyzed-by: Dilip Kumar Author: Euler Taveira Reviewed-by: Michael Paquier, Masahiko Sawada Discussion: https://postgr.es/m/CAFiTN-u64S5bUiPL1q5kwpHNd0hRnf1OE-bzxNiOs5zo84i51w@mail.gmail.com Backpatch-through: 10 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/70ae82b9b4b5871604ba4e98ebe0f32bef223200 Modified Files -------------- src/backend/executor/execReplication.c | 3 ++- src/test/subscription/t/001_rep_changes.pl | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc @ 2020-05-16 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 4+ messages in thread From: Michael Paquier @ 2020-05-16 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix assertion with relation using REPLICA IDENTITY FULL in subscriber In a logical replication subscriber, a table using REPLICA IDENTITY FULL which has a primary key would try to use the primary key's index available to scan for a tuple, but an assertion only assumed as correct the case of an index associated to REPLICA IDENTITY USING INDEX. This commit corrects the assertion so as the use of a primary key index is a valid case. Reported-by: Dilip Kumar Analyzed-by: Dilip Kumar Author: Euler Taveira Reviewed-by: Michael Paquier, Masahiko Sawada Discussion: https://postgr.es/m/CAFiTN-u64S5bUiPL1q5kwpHNd0hRnf1OE-bzxNiOs5zo84i51w@mail.gmail.com Backpatch-through: 10 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/7ccb2f54d9f3f3c5b4ac092d62c846b02a47f8d5 Modified Files -------------- src/backend/executor/execReplication.c | 3 ++- src/test/subscription/t/001_rep_changes.pl | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc @ 2020-05-16 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 4+ messages in thread From: Michael Paquier @ 2020-05-16 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix assertion with relation using REPLICA IDENTITY FULL in subscriber In a logical replication subscriber, a table using REPLICA IDENTITY FULL which has a primary key would try to use the primary key's index available to scan for a tuple, but an assertion only assumed as correct the case of an index associated to REPLICA IDENTITY USING INDEX. This commit corrects the assertion so as the use of a primary key index is a valid case. Reported-by: Dilip Kumar Analyzed-by: Dilip Kumar Author: Euler Taveira Reviewed-by: Michael Paquier, Masahiko Sawada Discussion: https://postgr.es/m/CAFiTN-u64S5bUiPL1q5kwpHNd0hRnf1OE-bzxNiOs5zo84i51w@mail.gmail.com Backpatch-through: 10 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3acb30b49818754845b256f0f8d4c81705f047cf Modified Files -------------- src/backend/executor/execReplication.c | 3 ++- src/test/subscription/t/001_rep_changes.pl | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc @ 2020-05-16 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 4+ messages in thread From: Michael Paquier @ 2020-05-16 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix assertion with relation using REPLICA IDENTITY FULL in subscriber In a logical replication subscriber, a table using REPLICA IDENTITY FULL which has a primary key would try to use the primary key's index available to scan for a tuple, but an assertion only assumed as correct the case of an index associated to REPLICA IDENTITY USING INDEX. This commit corrects the assertion so as the use of a primary key index is a valid case. Reported-by: Dilip Kumar Analyzed-by: Dilip Kumar Author: Euler Taveira Reviewed-by: Michael Paquier, Masahiko Sawada Discussion: https://postgr.es/m/CAFiTN-u64S5bUiPL1q5kwpHNd0hRnf1OE-bzxNiOs5zo84i51w@mail.gmail.com Backpatch-through: 10 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b4ded2f227f3ec1144a4691d2326eb90174447db Modified Files -------------- src/backend/executor/execReplication.c | 3 ++- src/test/subscription/t/001_rep_changes.pl | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2020-05-16 09:19 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-05-16 09:19 pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc Michael Paquier <michael@paquier.xyz> 2020-05-16 09:19 pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc Michael Paquier <michael@paquier.xyz> 2020-05-16 09:19 pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc Michael Paquier <michael@paquier.xyz> 2020-05-16 09:19 pgsql: Fix assertion with relation using REPLICA IDENTITY FULL in subsc Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox