Re: [Logical Replication] TRAP: FailedAssertion("rel->rd_rel->relreplident == REPLICA_IDENTITY_DEFAULT || rel->rd_rel->relreplident == REPLICA_IDENTITY_FULL || rel->rd_rel->relreplident == REPLICA_IDENTITY_INDEX"
Michael Paquier <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.devel.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jan 07, 2020 at 05:38:49PM +0530, Neha Sharma wrote: > I am getting a server crash on publication server on HEAD for the below > test case. > > Test case: > Publication server: > create table test(a int); > create publication test_pub for all tables; > alter table test replica identity NOTHING ; > > Subscription server: > create table test(a int); > create subscription test_sub CONNECTION 'host=172.16.208.32 port=5432 > dbname=postgres user=centos' PUBLICATION test_pub WITH ( slot_name = > test_slot_sub); > > Publication server: > insert into test values(generate_series(1,5),'aa'); This would not work as your relation has only one column. There are some TAP tests for logical replication (none actually stressing NOTHING as replica identity), which do not fail, and I cannot reproduce the failure myself. > After executing the DML in publication server ,it crashed with the > mentioned assert. Do you have other objects defined on your schema on the publication or the subscription side? Like, er, triggers? -- Michael
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl4Ww08ACgkQnvQgOdby QH1quQ//VSZDgPzUtpSLugjUCSRBlCNmlsZtgZRSVnWq/F6eR3HpXtAYQVpNEEyD BCR//W8eJyM2Ui2i7XYbgrvR7U6B8jnvmeRAQk9O21CmY4x5lSlxnGha75yr6Jlr R5kclj5EVj6YdS21cJKZEm+2/ZHNHJKMD/b34jjYwIAQofPm0SHCZp+bzba5uV+4 1toxCKJALpto72Sf65hxJqFOWcvkMRHQuN5xu8fdpTX5978XSJbKw9Nm7HM3VFOu oDfBhZV6S94t2tdZh8tafIt08JPhflR1gWvfiSeerZpth+xlUouCDMbHoRJ6t8KC dLOMh5SYii6LYHwGX1ar99YHmNIUJk2002a2CwjPisYHlFRG5P5RXkJL9xhFUGDY J+B8Rgyrpwefy68jqsU6avWF+jO3ub4Bba/hwNDNnktFIs8dzy5CRwc5q3Obfuac oBtoQykJH1DeaztR9oZ8JjgVDx2kjxzNiGea89sdvqGUTOsCx8jrr/GGcPezsbuH 48WEmj8dNWqdzedgPXwPeHn9VlHZVHRcw0I85vfrPQ65+YitPunAZIRNL+1W2NZm ySWRIJg4BzL6CYykegzHJfO9LiIZivREPb5WQwKqNt9LbGX8oKIL3H2FzywtfMH3 B6BaILDHdR9KYlq+Y7qC8D99zu8D64nVg5BbSLunOrn6fUPAg80= =PfRw -----END PGP SIGNATURE-----