diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-01-06 15:35:31 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-01-06 17:27:58 -0500 |
commit | 4c032dd8046b145a25032643f536aab83deb19e3 (patch) | |
tree | 49bd7a23e14d6e3a8a1ec07aa8b8f145c2edf626 /contrib/postgres_fdw/postgres_fdw.c | |
parent | b1665bf01e5f4200d37addfc2ddc406ff7df14a5 (diff) | |
download | postgresql-4c032dd8046b145a25032643f536aab83deb19e3.tar.gz postgresql-4c032dd8046b145a25032643f536aab83deb19e3.zip |
Check for two_phase change at end of process_syncing_tables_for_apply.
Previously this function checked to see if we were ready to switch
to two_phase mode at its start, but that's silly: we should check
at the end, after we've done the work that might make us ready.
This simple change removes one sleep cycle from the time needed to
switch to two_phase mode. In the real world that might not be
worth much, but it shaves a few seconds off the runtime for the
subscription test suite.
Nathan Bossart
Discussion: https://postgr.es/m/20221122004119.GA132961@nathanxps13
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions