Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ce7f772

Browse files
committed
Use correct GetDatum() in pg_relation_check_pages()
UInt32GetDatum() was getting used, while the result needs Int64GetDatum(). Oversight in f2b8839. Per buildfarm member florican. Discussion: https://postgr.es/m/1226629.1603859189@sss.pgh.pa.us
1 parent f2b8839 commit ce7f772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/pagefuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ check_relation_fork(TupleDesc tupdesc, Tuplestorestate *tupstore,
214214
memset(nulls, 0, sizeof(nulls));
215215

216216
values[i++] = CStringGetTextDatum(path);
217-
values[i++] = UInt32GetDatum(blkno);
217+
values[i++] = Int64GetDatum((int64) blkno);
218218

219219
Assert(i == PG_CHECK_RELATION_COLS);
220220

0 commit comments

Comments
 (0)