- Notifications
You must be signed in to change notification settings - Fork28
Commit72e43fc
committed
Restore replication protocol's duplicate command tags
I removed the duplicate command tags for START_REPLICATION inadvertentlyin commit 07082b08cc5d, but the replication protocol requires them. Thefact that the replication protocol was broken was not noticed becauseall our test cases use an optimized code path that exits early, failingto verify that the behavior is correct for non-optimized cases. Putthem back.Also document this protocol quirk.Add a test case that shows the failure. It might still succeed evenwithout the patch when run on a fast enough server, but it suffices toshow the bug in enough cases that it would be noticed in buildfarm.Author: Álvaro Herrera <alvherre@alvh.no-ip.org>Reported-by: Henry Hinze <henry.hinze@gmail.com>Reviewed-by: Petr Jelínek <petr.jelinek@2ndquadrant.com>Discussion:https://postgr.es/m/16643-eaadeb2a1a58d28c@postgresql.org1 parente095013 commit72e43fc
File tree
4 files changed
+61
-6
lines changed- doc/src/sgml
- src
- backend/replication
- logical
- test/subscription/t
4 files changed
+61
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2059 | 2059 | | |
2060 | 2060 | | |
2061 | 2061 | | |
2062 | | - | |
2063 | | - | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2064 | 2065 | | |
2065 | 2066 | | |
2066 | 2067 | | |
| |||
2382 | 2383 | | |
2383 | 2384 | | |
2384 | 2385 | | |
2385 | | - | |
| 2386 | + | |
| 2387 | + | |
2386 | 2388 | | |
2387 | 2389 | | |
2388 | 2390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2100 | 2100 | | |
2101 | 2101 | | |
2102 | 2102 | | |
2103 | | - | |
2104 | 2103 | | |
2105 | 2104 | | |
2106 | 2105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
1638 | | - | |
| 1638 | + | |
| 1639 | + | |
1639 | 1640 | | |
1640 | 1641 | | |
1641 | 1642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
0 commit comments
Comments
(0)