forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita3740c4
committed
postgres_fdw: Allow partitions specified in LIMIT TO to be imported.
Commitf49bcd4 disallowed postgres_fdw to import table partitions.Because all data can be accessed through the partitioned table whichis the root of the partitioning hierarchy, importing only partitionedtable should allow access to all the data without creating extra objects.This is a reasonable default when importing a whole schema. But theremay be the case where users want to explicitly import one ofa partitioned tables' partitions.For that use case, this commit allows postgres_fdw to import tables orforeign tables which are partitions of some other table only when theyare explicitly specified in LIMIT TO clause. It doesn't changethe behavior that any partitions not specified in LIMIT TO areautomatically excluded in IMPORT FOREIGN SCHEMA command.Author: Matthias van de MeentReviewed-by: Bernd Helmle, Amit Langote, Michael Paquier, Fujii MasaoDiscussion:https://postgr.es/m/CAEze2Whwg4i=mzApMe+PXxCEfgoZmHGqdqQFW7J4bmj_5p6t1A@mail.gmail.com1 parent90c885c commita3740c4
File tree
4 files changed
+37
-26
lines changed- contrib/postgres_fdw
- expected
- sql
- doc/src/sgml
4 files changed
+37
-26
lines changedLines changed: 20 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8228 | 8228 |
| |
8229 | 8229 |
| |
8230 | 8230 |
| |
| 8231 | + | |
| 8232 | + | |
8231 | 8233 |
| |
8232 | 8234 |
| |
8233 | 8235 |
| |
| |||
8419 | 8421 |
| |
8420 | 8422 |
| |
8421 | 8423 |
| |
8422 |
| - | |
| 8424 | + | |
8423 | 8425 |
| |
8424 | 8426 |
| |
8425 |
| - | |
8426 |
| - | |
8427 |
| - | |
8428 |
| - | |
8429 |
| - | |
| 8427 | + | |
| 8428 | + | |
| 8429 | + | |
| 8430 | + | |
| 8431 | + | |
| 8432 | + | |
8430 | 8433 |
| |
8431 |
| - | |
| 8434 | + | |
8432 | 8435 |
| |
8433 | 8436 |
| |
8434 |
| - | |
8435 |
| - | |
8436 |
| - | |
8437 |
| - | |
8438 |
| - | |
8439 |
| - | |
8440 |
| - | |
8441 |
| - | |
8442 |
| - | |
| 8437 | + | |
| 8438 | + | |
| 8439 | + | |
| 8440 | + | |
| 8441 | + | |
| 8442 | + | |
| 8443 | + | |
| 8444 | + | |
| 8445 | + | |
| 8446 | + | |
8443 | 8447 |
| |
8444 | 8448 |
| |
8445 | 8449 |
| |
|
Lines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5095 | 5095 |
| |
5096 | 5096 |
| |
5097 | 5097 |
| |
5098 |
| - | |
5099 |
| - | |
5100 |
| - | |
| 5098 | + | |
| 5099 | + | |
| 5100 | + | |
| 5101 | + | |
| 5102 | + | |
5101 | 5103 |
| |
5102 | 5104 |
| |
5103 | 5105 |
| |
| |||
5153 | 5155 |
| |
5154 | 5156 |
| |
5155 | 5157 |
| |
5156 |
| - | |
| 5158 | + | |
| 5159 | + | |
5157 | 5160 |
| |
5158 | 5161 |
| |
5159 | 5162 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2366 | 2366 |
| |
2367 | 2367 |
| |
2368 | 2368 |
| |
| 2369 | + | |
| 2370 | + | |
2369 | 2371 |
| |
2370 | 2372 |
| |
2371 | 2373 |
| |
| |||
2386 | 2388 |
| |
2387 | 2389 |
| |
2388 | 2390 |
| |
2389 |
| - | |
| 2391 | + | |
2390 | 2392 |
| |
2391 | 2393 |
| |
2392 |
| - | |
| 2394 | + | |
2393 | 2395 |
| |
2394 | 2396 |
| |
2395 | 2397 |
| |
|
Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
510 | 510 |
| |
511 | 511 |
| |
512 | 512 |
| |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 |
| - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
517 | 519 |
| |
518 | 520 |
| |
519 | 521 |
| |
|
0 commit comments
Comments
(0)