forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit31e5b50
committed
postgres_fdw: be more wary about shippability of reg* constants.
Don't consider a constant of regconfig or other reg* types to beshippable unless it refers to a built-in object, or an object inan extension that's been marked shippable. Without thisrestriction, we're too likely to send a constant that will failto parse on the remote server.For the regconfig type only, consider OIDs up to 16383 to be"built in", rather than the normal cutoff of 9999. Otherwisethe initdb-created text search configurations will be consideredunshippable, which is unlikely to make anyone happy.It's possible that this new restriction will de-optimize queriesthat were working satisfactorily before. Users can restore anylost performance by making sure that objects that can be expectedto exist on the remote side are in shippable extensions. However,that's not a change that people are likely to be happy about havingto make after a minor-release update. Between that considerationand the lack of field complaints, let's just change this in HEAD.Noted while fixing bug #17483, although this is not preciselythe problem that that report complained about.Discussion:https://postgr.es/m/1423433.1652722406@sss.pgh.pa.us1 parentf49a9fc commit31e5b50
File tree
3 files changed
+107
-2
lines changed- contrib/postgres_fdw
- expected
- sql
3 files changed
+107
-2
lines changedLines changed: 72 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| 46 | + | |
| 47 | + | |
45 | 48 |
| |
46 | 49 |
| |
47 | 50 |
| |
| |||
384 | 387 |
| |
385 | 388 |
| |
386 | 389 |
| |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
387 | 459 |
| |
388 | 460 |
| |
389 | 461 |
| |
|
Lines changed: 24 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1163 | 1163 |
| |
1164 | 1164 |
| |
1165 | 1165 |
| |
1166 |
| - | |
| 1166 | + | |
| 1167 | + | |
1167 | 1168 |
| |
1168 | 1169 |
| |
1169 | 1170 |
| |
1170 | 1171 |
| |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1171 | 1194 |
| |
1172 | 1195 |
| |
1173 | 1196 |
| |
|
Lines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
442 | 442 |
| |
443 | 443 |
| |
444 | 444 |
| |
445 |
| - | |
| 445 | + | |
| 446 | + | |
446 | 447 |
| |
447 | 448 |
| |
448 | 449 |
| |
449 | 450 |
| |
450 | 451 |
| |
451 | 452 |
| |
452 | 453 |
| |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
453 | 463 |
| |
454 | 464 |
| |
455 | 465 |
| |
|
0 commit comments
Comments
(0)