forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4f10e7e
Set ActiveSnapshot when logically replaying inserts
Input functions for the inserted tuples may require a snapshot, whenthey are replayed by native logical replication. An example is a domainwith a constraint using a SQL-language function, which prior to thiscommit failed to apply on the subscriber side.Reported-by: Mai Peng <maily.peng@webedia-group.com>Co-authored-by: Minh-Quan TRAN <qtran@itscaro.me>Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>Discussion:https://postgr.es/m/4EB4BD78-BFC3-4D04-B8DA-D53DF7160354@webedia-group.comDiscussion:https://postgr.es/m/153211336163.1404.11721804383024050689@wrigleys.postgresql.org1 parent70de0ab commit4f10e7e
File tree
2 files changed
+25
-3
lines changed- src
- backend/replication/logical
- test/subscription/t
2 files changed
+25
-3
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
610 | 610 |
| |
611 | 611 |
| |
612 | 612 |
| |
| 613 | + | |
| 614 | + | |
| 615 | + | |
613 | 616 |
| |
614 | 617 |
| |
615 | 618 |
| |
616 | 619 |
| |
617 | 620 |
| |
618 | 621 |
| |
619 |
| - | |
620 | 622 |
| |
621 | 623 |
| |
622 | 624 |
| |
|
Lines changed: 22 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
94 | 100 |
| |
95 | 101 |
| |
96 | 102 |
| |
| |||
240 | 246 |
| |
241 | 247 |
| |
242 | 248 |
| |
| 249 | + | |
| 250 | + | |
| 251 | + | |
243 | 252 |
| |
244 | 253 |
| |
245 | 254 |
| |
| |||
541 | 550 |
| |
542 | 551 |
| |
543 | 552 |
| |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
544 | 564 |
| |
545 | 565 |
|
0 commit comments
Comments
(0)