forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2c4d0f3
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 parent96b1d98 commit2c4d0f3
File tree
2 files changed
+25
-3
lines changed- src
- backend/replication/logical
- test/subscription/t
2 files changed
+25
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
610 | 613 | | |
611 | 614 | | |
612 | 615 | | |
613 | 616 | | |
614 | 617 | | |
615 | 618 | | |
616 | | - | |
617 | 619 | | |
618 | 620 | | |
619 | 621 | | |
| |||
| 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 | | |
| |||
244 | 250 | | |
245 | 251 | | |
246 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
247 | 256 | | |
248 | 257 | | |
249 | 258 | | |
| |||
548 | 557 | | |
549 | 558 | | |
550 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
551 | 571 | | |
552 | 572 | | |
0 commit comments
Comments
(0)