forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5a991ef
committed
Allow logical decoding via the walsender interface.
In order for this to work, walsenders need the optional ability toconnect to a database, so the "replication" keyword now allows trueor false, for backward-compatibility, and the new value "database"(which causes the "dbname" parameter to be respected).walsender needs to loop not only when idle but also when sendingdecoded data to the user and when waiting for more xlog data to decode.This means that there are now three separate loops inside walsender.c;although some refactoring has been done here, this is still a bit ugly.Andres Freund, with contributions from Álvaro Herrera, and furtherreview by me.1 parentcb9a0c7 commit5a991ef
File tree
12 files changed
+915
-167
lines changed- doc/src/sgml
- src
- backend
- postmaster
- replication
- libpqwalreceiver
- utils/init
- bin/pg_basebackup
- include/replication
- tools/pgindent
12 files changed
+915
-167
lines changedLines changed: 19 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1302 | 1302 |
| |
1303 | 1303 |
| |
1304 | 1304 |
| |
1305 |
| - | |
1306 |
| - | |
1307 |
| - | |
1308 |
| - | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
1309 | 1312 |
| |
1310 | 1313 |
| |
1311 | 1314 |
| |
| |||
1315 | 1318 |
| |
1316 | 1319 |
| |
1317 | 1320 |
| |
1318 |
| - | |
| 1321 | + | |
1319 | 1322 |
| |
1320 | 1323 |
| |
1321 | 1324 |
| |
| |||
1357 | 1360 |
| |
1358 | 1361 |
| |
1359 | 1362 |
| |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1360 | 1374 |
| |
1361 | 1375 |
| |
1362 | 1376 |
| |
|
Lines changed: 24 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1884 | 1884 |
| |
1885 | 1885 |
| |
1886 | 1886 |
| |
1887 |
| - | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
1888 | 1900 |
| |
1889 | 1901 |
| |
1890 |
| - | |
| 1902 | + | |
| 1903 | + | |
1891 | 1904 |
| |
1892 | 1905 |
| |
1893 | 1906 |
| |
| |||
1968 | 1981 |
| |
1969 | 1982 |
| |
1970 | 1983 |
| |
1971 |
| - | |
1972 |
| - | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
1973 | 1993 |
| |
1974 | 1994 |
| |
1975 | 1995 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
143 |
| - | |
| 142 | + | |
| 143 | + | |
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
|
Lines changed: 68 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
| 76 | + | |
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
79 |
| - | |
| 80 | + | |
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 |
| |
84 | 88 |
| |
85 | 89 |
| |
| |||
98 | 102 |
| |
99 | 103 |
| |
100 | 104 |
| |
| 105 | + | |
101 | 106 |
| |
102 | 107 |
| |
103 | 108 |
| |
| |||
165 | 170 |
| |
166 | 171 |
| |
167 | 172 |
| |
168 |
| - | |
169 | 173 |
| |
| 174 | + | |
170 | 175 |
| |
171 | 176 |
| |
172 | 177 |
| |
| |||
175 | 180 |
| |
176 | 181 |
| |
177 | 182 |
| |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
178 | 193 |
| |
179 | 194 |
| |
180 |
| - | |
| 195 | + | |
181 | 196 |
| |
182 | 197 |
| |
183 | 198 |
| |
| |||
205 | 220 |
| |
206 | 221 |
| |
207 | 222 |
| |
208 |
| - | |
209 |
| - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
210 | 226 |
| |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
216 | 234 |
| |
217 |
| - | |
218 |
| - | |
219 | 235 |
| |
220 |
| - | |
221 | 236 |
| |
222 | 237 |
| |
223 | 238 |
| |
| |||
250 | 265 |
| |
251 | 266 |
| |
252 | 267 |
| |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
253 | 308 |
| |
254 | 309 |
| |
255 | 310 |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
| 97 | + | |
97 | 98 |
| |
98 | 99 |
| |
99 | 100 |
| |
|
0 commit comments
Comments
(0)