forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4eea220

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 parentba6af6a commit4eea220
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 | |
---|---|---|---|
| |||
10008 | 10008 |
| |
10009 | 10009 |
| |
10010 | 10010 |
| |
| 10011 | + | |
| 10012 | + | |
| 10013 | + | |
| 10014 | + | |
| 10015 | + | |
| 10016 | + | |
| 10017 | + | |
| 10018 | + | |
| 10019 | + | |
| 10020 | + | |
| 10021 | + | |
| 10022 | + | |
| 10023 | + | |
| 10024 | + | |
| 10025 | + | |
| 10026 | + | |
| 10027 | + | |
| 10028 | + | |
| 10029 | + | |
| 10030 | + | |
| 10031 | + | |
| 10032 | + | |
| 10033 | + | |
| 10034 | + | |
| 10035 | + | |
| 10036 | + | |
| 10037 | + | |
| 10038 | + | |
10011 | 10039 |
| |
10012 | 10040 |
| |
10013 | 10041 |
| |
|
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 | |
---|---|---|---|
| |||
3135 | 3135 |
| |
3136 | 3136 |
| |
3137 | 3137 |
| |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
3138 | 3150 |
| |
3139 | 3151 |
| |
3140 | 3152 |
| |
|
0 commit comments
Comments
(0)