- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit89d349b

Etsuro Fujita
postgres_fdw: Disable batch insert when BEFORE ROW INSERT triggers exist.
Previously, we allowed this, but such triggers might query the table toinsert into and act differently if the tuples that have already beenprocessed and prepared for insertion are not there, so disable it insuch cases.Back-patch to v14 where batch insert was added.Discussion:https://postgr.es/m/CAPmGK16_uPqsmgK0-LpLSUk54_BoK13bPrhxhfjSoSTVz414hA%40mail.gmail.com1 parente452184 commit89d349b
File tree
3 files changed
+53
-4
lines changed- contrib/postgres_fdw
- expected
- sql
3 files changed
+53
-4
lines changedLines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9868 | 9868 |
| |
9869 | 9869 |
| |
9870 | 9870 |
| |
| 9871 | + | |
| 9872 | + | |
| 9873 | + | |
| 9874 | + | |
| 9875 | + | |
| 9876 | + | |
| 9877 | + | |
| 9878 | + | |
| 9879 | + | |
| 9880 | + | |
| 9881 | + | |
| 9882 | + | |
| 9883 | + | |
| 9884 | + | |
| 9885 | + | |
| 9886 | + | |
| 9887 | + | |
| 9888 | + | |
| 9889 | + | |
| 9890 | + | |
| 9891 | + | |
| 9892 | + | |
| 9893 | + | |
| 9894 | + | |
| 9895 | + | |
| 9896 | + | |
| 9897 | + | |
| 9898 | + | |
9871 | 9899 |
| |
9872 | 9900 |
| |
9873 | 9901 |
| |
|
Lines changed: 13 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2012 | 2012 |
| |
2013 | 2013 |
| |
2014 | 2014 |
| |
2015 |
| - | |
2016 |
| - | |
| 2015 | + | |
| 2016 | + | |
2017 | 2017 |
| |
2018 | 2018 |
| |
2019 | 2019 |
| |
| |||
2042 | 2042 |
| |
2043 | 2043 |
| |
2044 | 2044 |
| |
2045 |
| - | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
2046 | 2054 |
| |
2047 | 2055 |
| |
2048 |
| - | |
| 2056 | + | |
| 2057 | + | |
2049 | 2058 |
| |
2050 | 2059 |
| |
2051 | 2060 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3083 | 3083 |
| |
3084 | 3084 |
| |
3085 | 3085 |
| |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
3086 | 3098 |
| |
3087 | 3099 |
| |
3088 | 3100 |
| |
|
0 commit comments
Comments
(0)