forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit670c0a1
committed
Weaken type-OID-matching checks in array_recv and record_recv.
Rather than always insisting on an exact match of the type OID in thedata to the element type or column type we expect, complain only whenboth OIDs fall within the manually-assigned range. This acknowledgesthe reality that user-defined types don't have stable OIDs, whilestill preserving some of the mistake-detection value of the old test.(It's not entirely clear whether to error if one OID is manuallyassigned and the other isn't. But perhaps that case could arise incross-version cases where a former extension type has been importedinto core, so I let it pass.)This change allows us to remove the prohibition on binary transferof user-defined arrays and composites in the recently-landed supportfor binary logical replication (commit9de77b5). We can justunconditionally drop that check, since if the client has asked forbinary transfer it must be >= v14 and must have this change.Discussion:https://postgr.es/m/CADK3HH+R3xMn=8t3Ct+uD+qJ1KD=Hbif5NFMJ+d5DkoCzp6Vgw@mail.gmail.com1 parent606c384 commit670c0a1
File tree
3 files changed
+51
-23
lines changed- src/backend
- replication/logical
- utils/adt
3 files changed
+51
-23
lines changedLines changed: 2 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
494 | 494 |
| |
495 | 495 |
| |
496 | 496 |
| |
497 |
| - | |
498 |
| - | |
499 |
| - | |
500 |
| - | |
501 |
| - | |
502 |
| - | |
503 |
| - | |
504 |
| - | |
505 |
| - | |
506 |
| - | |
| 497 | + | |
507 | 498 |
| |
508 |
| - | |
509 |
| - | |
510 |
| - | |
511 |
| - | |
512 |
| - | |
| 499 | + | |
513 | 500 |
| |
514 | 501 |
| |
515 | 502 |
| |
|
Lines changed: 25 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1308 | 1308 |
| |
1309 | 1309 |
| |
1310 | 1310 |
| |
| 1311 | + | |
1311 | 1312 |
| |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1312 | 1325 |
| |
1313 | 1326 |
| |
1314 |
| - | |
1315 |
| - | |
1316 |
| - | |
1317 |
| - | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1318 | 1339 |
| |
1319 | 1340 |
| |
1320 | 1341 |
| |
|
Lines changed: 24 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
551 | 551 |
| |
552 | 552 |
| |
553 | 553 |
| |
554 |
| - | |
| 554 | + | |
555 | 555 |
| |
556 |
| - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
557 | 571 |
| |
558 | 572 |
| |
559 |
| - | |
560 |
| - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
561 | 581 |
| |
562 | 582 |
| |
563 | 583 |
| |
|
0 commit comments
Comments
(0)