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

Commitd387682

Browse files
Marina PolyakovaMaxim Orlov
Marina Polyakova
authored and
Maxim Orlov
committed
Fix compiler warnings due to new checks in PostgreSQL 16
See the commit 0fe954c28584169938e5c0738cfaa9930ce77577 (Add-Wshadow=compatible-local to the standard compilation flags) in PostgreSQL 16.src/ruminsert.c: In function ‘rumHeapTupleBulkInsert’:src/ruminsert.c:533:51: warning: declaration of ‘attr’ shadows a previous local[-Wshadow=compatible-local] 533 | Form_pg_attribute attr =RumTupleDescAttr( | ^~~~src/ruminsert.c:505:27: note: shadowed declaration is here 505 | Form_pg_attribute attr = buildstate->rumstate.addAttrs[attnum- 1]; | ^~~~src/rumget.c: In function ‘startScanEntry’:src/rumget.c:635:41: warning: declaration of ‘page’ shadows a previous local[-Wshadow=compatible-local] 635 | Page page; | ^~~~src/rumget.c:548:25: note: shadowed declaration is here 548 | Page page; | ^~~~src/rumget.c: In function ‘entryGetNextItemList’:src/rumget.c:1054:33: warning: declaration of ‘page’ shadows a previous local[-Wshadow=compatible-local] 1054 | Page page; | ^~~~src/rumget.c:986:25: note: shadowed declaration is here 986 | Page page; | ^~~~
1 parentbfd9eba commitd387682

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎src/rumget.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,6 @@ startScanEntry(RumState * rumstate, RumScanEntry entry, Snapshot snapshot)
632632
{
633633
BlockNumberrootPostingTree=RumGetPostingTree(itup);
634634
RumPostingTreeScan*gdi;
635-
Pagepage;
636635
OffsetNumbermaxoff,
637636
i;
638637
Pointerptr;
@@ -1051,7 +1050,6 @@ entryGetNextItemList(RumState * rumstate, RumScanEntry entry, Snapshot snapshot)
10511050
{
10521051
BlockNumberrootPostingTree=RumGetPostingTree(itup);
10531052
RumPostingTreeScan*gdi;
1054-
Pagepage;
10551053
OffsetNumbermaxoff,
10561054
i;
10571055
Pointerptr;

‎src/ruminsert.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,11 @@ rumHeapTupleBulkInsert(RumBuildState * buildstate, OffsetNumber attnum,
530530
/* Check existance of additional information attribute in index */
531531
if (!attr)
532532
{
533-
Form_pg_attributeattr=RumTupleDescAttr(
533+
Form_pg_attributecurrent_attr=RumTupleDescAttr(
534534
buildstate->rumstate.origTupdesc,attnum-1);
535535

536536
elog(ERROR,"additional information attribute \"%s\" is not found in index",
537-
NameStr(attr->attname));
537+
NameStr(current_attr->attname));
538538
}
539539

540540
addInfo[i]=datumCopy(addInfo[i],attr->attbyval,attr->attlen);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp