You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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 temporary
relation 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 will
initialize 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 reproduce
the original issue there. I suspect it has to do with PGPRO-3124 patch who
delays temp table file creation as late as possible (which on receiver side in
mm should mean never create the file, as temp table is ever empty there), but
not 100% sure.
tags: multimaster
(cherry picked from commit 69036af77ebb5cc51f2733a5a6bcb76a780967d3)
0 commit comments