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

Amit Kapila
Ignore dropped and generated columns from the column list.
We don't allow different column lists for the same table in the differentpublications of the single subscription. A publication with a column listexcept for dropped and generated columns should be considered the same asa publication with no column list (which implicitly includes all columnsas part of the columns list). However, as we were not excluding thedropped and generated columns from the column list combining suchpublications leads to an error "cannot use different column lists fortable ...".We decided not to backpatch this fix as there is a risk of users seeingthis as a behavior change and also we didn't see any field report of thiscase.Author: Shi yuReviewed-by: Amit KapilaDiscussion:https://postgr.es/m/OSZPR01MB631091CCBC56F195B1B9ACB0FDFE9@OSZPR01MB6310.jpnprd01.prod.outlook.com1 parentdca8b01 commitb7ae039
File tree
6 files changed
+97
-6
lines changed- src
- backend
- catalog
- replication/pgoutput
- include/catalog
- test
- regress/expected
- subscription/t
6 files changed
+97
-6
lines changedLines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1153 | 1153 |
| |
1154 | 1154 |
| |
1155 | 1155 |
| |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
1156 | 1186 |
| |
1157 | 1187 |
| |
1158 | 1188 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
371 | 371 |
| |
372 | 372 |
| |
373 | 373 |
| |
374 |
| - | |
375 |
| - | |
376 |
| - | |
| 374 | + | |
| 375 | + | |
377 | 376 |
| |
378 | 377 |
| |
379 | 378 |
| |
|
Lines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1058 | 1058 |
| |
1059 | 1059 |
| |
1060 | 1060 |
| |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1061 | 1065 |
| |
1062 | 1066 |
| |
1063 | 1067 |
| |
1064 | 1068 |
| |
1065 | 1069 |
| |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
1066 | 1081 |
| |
1067 | 1082 |
| |
1068 | 1083 |
| |
1069 | 1084 |
| |
1070 |
| - | |
| 1085 | + | |
1071 | 1086 |
| |
1072 | 1087 |
| |
1073 | 1088 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1446 | 1446 |
| |
1447 | 1447 |
| |
1448 | 1448 |
| |
1449 |
| - | |
| 1449 | + | |
1450 | 1450 |
| |
1451 | 1451 |
| |
1452 | 1452 |
| |
|
Lines changed: 47 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1184 | 1184 |
| |
1185 | 1185 |
| |
1186 | 1186 |
| |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
1187 | 1234 |
| |
1188 | 1235 |
| |
1189 | 1236 |
| |
|
0 commit comments
Comments
(0)