Content-Length: 260479 | pFad | https://github.com/postgrespro/postgres/commit/ce7f772c5e6066e0bbafea5759e652c9757c8e6b

2F Use correct GetDatum() in pg_relation_check_pages() · postgrespro/postgres@ce7f772 · GitHub
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

Lines changed: 1 addition & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/ce7f772c5e6066e0bbafea5759e652c9757c8e6b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy