We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1f25dfe commit961e2f4Copy full SHA for 961e2f4
pglogical_apply.c
@@ -101,13 +101,13 @@ find_pkey_tuple(ScanKey skey, Relation rel, Relation idxrel,
101
InitDirtySnapshot(snap);
102
scan=index_beginscan(rel,idxrel,
103
&snap,
104
-RelationGetNumberOfAttributes(idxrel),
+IndexRelationGetNumberOfKeyAttributes(idxrel),
105
0);
106
107
retry:
108
found= false;
109
110
-index_rescan(scan,skey,RelationGetNumberOfAttributes(idxrel),NULL,0);
+index_rescan(scan,skey,IndexRelationGetNumberOfKeyAttributes(idxrel),NULL,0);
111
112
if ((scantuple=index_getnext(scan,ForwardScanDirection))!=NULL)
113
{
@@ -236,7 +236,7 @@ build_index_scan_key(ScanKey skey, Relation rel, Relation idxrel, TupleData *tup
236
indkey= (int2vector*)DatumGetPointer(indkeyDatum);
237
238
239
-for (attoff=0;attoff<RelationGetNumberOfAttributes(idxrel);attoff++)
+for (attoff=0;attoff<IndexRelationGetNumberOfKeyAttributes(idxrel);attoff++)
240
241
Oidoperator;
242
Oidopfamily;