forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4e9821b
committed
Restore replication protocol's duplicate command tags
I removed the duplicate command tags for START_REPLICATION inadvertentlyin commit07082b0, 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 parentb94109c commit4e9821b
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 changedLines changed: 5 additions & 3 deletions
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 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3071 | 3071 |
| |
3072 | 3072 |
| |
3073 | 3073 |
| |
3074 |
| - | |
3075 | 3074 |
| |
3076 | 3075 |
| |
3077 | 3076 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1656 | 1656 |
| |
1657 | 1657 |
| |
1658 | 1658 |
| |
1659 |
| - | |
| 1659 | + | |
| 1660 | + | |
1660 | 1661 |
| |
1661 | 1662 |
| |
1662 | 1663 |
| |
|
Lines changed: 54 additions & 1 deletion
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)