- Notifications
You must be signed in to change notification settings - Fork5
Commitbe65edd
committed
Add required database and origin filtering for logical messages.
Logical messages, added in3fe3511, during decoding failed to filtermessages emitted in other databases and messages emitted "under" areplication origin the output plugin isn't interested in.Add tests to verify that both types of filtering actually work. Whiletouching message.sql remove hunk obsoleted byd25379e.Bump XLOG_PAGE_MAGIC because xl_logical_message changed and because3fe3511 had omitted doing so.3fe3511 additionally didn't bumpcatversion, but7a54270 has done so since.Author: Petr JelinekReported-By: Andres FreundDiscussion: 20160406142513.wotqy3ba3kanr423@alap3.anarazel.de1 parent80abbeb commitbe65edd
File tree
8 files changed
+64
-15
lines changed- contrib/test_decoding
- expected
- sql
- src
- backend/replication/logical
- include
- access
- replication
8 files changed
+64
-15
lines changedLines changed: 23 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 | 3 |
| |
5 | 4 |
| |
6 | 5 |
| |
| |||
71 | 70 |
| |
72 | 71 |
| |
73 | 72 |
| |
74 |
| - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
75 | 77 |
| |
76 | 78 |
| |
77 |
| - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
78 | 98 |
| |
79 | 99 |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 |
| |
63 | 69 |
| |
64 | 70 |
| |
|
Lines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 | 3 |
| |
5 | 4 |
| |
6 | 5 |
| |
| |||
22 | 21 |
| |
23 | 22 |
| |
24 | 23 |
| |
25 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + |
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
|
Lines changed: 14 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
464 | 464 |
| |
465 | 465 |
| |
466 | 466 |
| |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
467 | 476 |
| |
468 | 477 |
| |
469 | 478 |
| |
| |||
474 | 483 |
| |
475 | 484 |
| |
476 | 485 |
| |
| 486 | + | |
477 | 487 |
| |
478 | 488 |
| |
479 | 489 |
| |
| |||
488 | 498 |
| |
489 | 499 |
| |
490 | 500 |
| |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
491 | 505 |
| |
492 | 506 |
| |
493 | 507 |
| |
| |||
504 | 518 |
| |
505 | 519 |
| |
506 | 520 |
| |
507 |
| - | |
508 |
| - | |
509 |
| - | |
510 |
| - | |
511 |
| - | |
512 |
| - | |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 | 521 |
| |
517 | 522 |
| |
518 | 523 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
| |||
60 | 62 |
| |
61 | 63 |
| |
62 | 64 |
| |
| 65 | + | |
63 | 66 |
| |
64 | 67 |
| |
65 | 68 |
| |
| |||
69 | 72 |
| |
70 | 73 |
| |
71 | 74 |
| |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 |
| |
73 | 79 |
| |
74 | 80 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
|
0 commit comments
Comments
(0)