Content-Length: 266867 | pFad | http://github.com/postgrespro/postgres_cluster/commit/83b59ca4447b005f8bd882f760efa380b1913773

1E Fix bug in monotonic sequences support · postgrespro/postgres_cluster@83b59ca · GitHub
Skip to content

Commit 83b59ca

Browse files
knizhnikkelvich
authored andcommitted
Fix bug in monotonic sequences support
1 parent 76741a1 commit 83b59ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pglogical_apply.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,11 +1161,13 @@ void MtmExecutor(void* work, size_t size)
11611161
case 'N':
11621162
{
11631163
int64 next;
1164+
Oid relid;
11641165
Assert(rel != NULL);
1165-
next = pq_getmsgint64(&s);
1166-
AdjustSequence(RelationGetRelid(rel), next);
1166+
relid = RelationGetRelid(rel);
11671167
close_rel(rel);
11681168
rel = NULL;
1169+
next = pq_getmsgint64(&s);
1170+
AdjustSequence(relid, next);
11691171
break;
11701172
}
11711173
case '0':

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/83b59ca4447b005f8bd882f760efa380b1913773

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy