Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a13747

Browse files
knizhnikkelvich
authored andcommitted
Fix handling of dropped attributes in pglogical_apply
1 parent5433e7a commit6a13747

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎pglogical_apply.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,18 +404,24 @@ read_tuple_parts(StringInfo s, Relation rel, TupleData *tup)
404404

405405
rnatts=pq_getmsgint(s,2);
406406

407-
if (desc->natts!=rnatts)
407+
if (desc->natts<rnatts)
408408
elog(ERROR,"tuple natts mismatch, %u vs %u",desc->natts,rnatts);
409409

410410
/* FIXME: unaligned data accesses */
411411

412412
for (i=0;i<desc->natts;i++)
413413
{
414414
Form_pg_attributeatt=desc->attrs[i];
415-
charkind=pq_getmsgbyte(s);
415+
charkind;
416416
constchar*data;
417417
intlen;
418418

419+
if (att->atttypid==InvalidOid) {
420+
continue;
421+
}
422+
423+
kind=pq_getmsgbyte(s);
424+
419425
switch (kind)
420426
{
421427
case'n':/* null */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp