- Notifications
You must be signed in to change notification settings - Fork28
Commit9ed770f
[PGPRO-4074] Port fix the foreign_key.sql regression test problem.
Cherry pick of[PGPRO-3171] Fix the foreign_key.sql regression test problem.We allow to apply transactions with temporary tables by any worker.Each worker has MyBackendId. At the stage of initialization of temporaryrelation into the relcache, it is set rel->rd_backend to MyBackendId.If worker try to open the ralation it will use rd-backend field to construct the path.If it is differ from the rd_backend of relation creator we catch the ERROR "could not open file ..."Fix the problem by modify BackendIdForTempRelations() routine. Now all workers willinitialize its rd_backend field of corresponding temporary relation by the same value.(cherry picked from commit fae6fc9b861fd7518cb5df8ae506b6f63c5434f6)ars:Funnily enough, the patch has been forgotten in v12 but I've failed to reproducethe original issue there. I suspect it has to do with PGPRO-3124 patch whodelays temp table file creation as late as possible (which on receiver side inmm should mean never create the file, as temp table is ever empty there), butnot 100% sure.tags: multimaster(cherry picked from commit 69036af77ebb5cc51f2733a5a6bcb76a780967d3)1 parent49ddc13 commit9ed770f
File tree
4 files changed
+24
-7
lines changed- src
- backend/catalog
- include
- catalog
- storage
4 files changed
+24
-7
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3326 | 3326 |
| |
3327 | 3327 |
| |
3328 | 3328 |
| |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
3329 | 3351 |
| |
3330 | 3352 |
| |
3331 | 3353 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
| 159 | + | |
159 | 160 |
| |
160 | 161 |
| |
161 | 162 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 | 30 |
|
0 commit comments
Comments
(0)