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

Commit961e2f4

Browse files
knizhnikkelvich
authored andcommitted
Support covering indexes in logical deconding
1 parent1f25dfe commit961e2f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎pglogical_apply.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ find_pkey_tuple(ScanKey skey, Relation rel, Relation idxrel,
101101
InitDirtySnapshot(snap);
102102
scan=index_beginscan(rel,idxrel,
103103
&snap,
104-
RelationGetNumberOfAttributes(idxrel),
104+
IndexRelationGetNumberOfKeyAttributes(idxrel),
105105
0);
106106

107107
retry:
108108
found= false;
109109

110-
index_rescan(scan,skey,RelationGetNumberOfAttributes(idxrel),NULL,0);
110+
index_rescan(scan,skey,IndexRelationGetNumberOfKeyAttributes(idxrel),NULL,0);
111111

112112
if ((scantuple=index_getnext(scan,ForwardScanDirection))!=NULL)
113113
{
@@ -236,7 +236,7 @@ build_index_scan_key(ScanKey skey, Relation rel, Relation idxrel, TupleData *tup
236236
indkey= (int2vector*)DatumGetPointer(indkeyDatum);
237237

238238

239-
for (attoff=0;attoff<RelationGetNumberOfAttributes(idxrel);attoff++)
239+
for (attoff=0;attoff<IndexRelationGetNumberOfKeyAttributes(idxrel);attoff++)
240240
{
241241
Oidoperator;
242242
Oidopfamily;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp