- Created a publication with only this "temp" table.
- Created a subscription with binary enabled on instances from master branch and this patch.
- Timed the tablesync process by calling the following procedure:
CREATE OR REPLACE PROCEDURE wait_for_rep() LANGUAGE plpgsql AS $$BEGIN WHILE (SELECT count(*) != 0 FROM pg_subscription_rel WHERE srsubstate <> 'r') LOOP COMMIT; END LOOP; END; $$;
Hera are averaged results of multiple consecutive runs from both master branch and the patch:
master (binary enabled but no binary copy): 20007.7948 ms