On Thu, Mar 9, 2023 at 4:50 PM Amit Kapila <amit.kapil...@gmail.com> wrote: > > On Thu, Mar 9, 2023 at 3:26 PM Önder Kalacı <onderkal...@gmail.com> wrote: > > > > > > So, I changed the first one to SUBSCRIPTION USES INDEX WITH MULTIPLE ROWS > > AND COLUMNS > > and dropped the second one. Let me know if it does not make sense to you. > > If I try, there are few more > > opportunities to squeeze in some more tests together, but those would start > > to complicate readability. > > > > I still want to reduce the test time and will think about it. Which of > the other tests do you think can be combined? >
Some of the ideas I can think of are as follows: 1. Combine "SUBSCRIPTION USES INDEX WITH MULTIPLE ROWS AND COLUMNS" and "SUBSCRIPTION USES INDEX WITH DROPPED COLUMNS" such that after verifying updates and deletes of the first test, we can drop some of the columns on both publisher and subscriber, then use alter subscription ... refresh publication command and then do the steps of the second test. Note that we don't add tables after initial setup, only changing schema. 2. We can also combine "Some NULL values" and "PUBLICATION LACKS THE COLUMN ON THE SUBS INDEX" as both use the same schema. After the first test, we need to drop the existing index and create a new index on the subscriber node. 3. General comment +# updates 200 rows +$node_publisher->safe_psql('postgres', + "UPDATE test_replica_id_full SET x = x + 1 WHERE x IN (5, 6);"); I think here you are updating 20 rows not 200. So, the comment seems wrong to me. Please think more and see if we can combine some other tests like "Unique index that is not primary key or replica identity" and the test we will have after comment#2 above. -- With Regards, Amit Kapila.