aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pagefuncs.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-10-28 13:59:18 +0900
committerMichael Paquier <michael@paquier.xyz>2020-10-28 13:59:18 +0900
commitce7f772c5e6066e0bbafea5759e652c9757c8e6b (patch)
tree01141c88c633dfcf84534b89912d9958e6be77fb /src/backend/utils/adt/pagefuncs.c
parentf2b883969557f4572cdfa87e1a40083d2b1272e7 (diff)
downloadpostgresql-ce7f772c5e6066e0bbafea5759e652c9757c8e6b.tar.gz
postgresql-ce7f772c5e6066e0bbafea5759e652c9757c8e6b.zip
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
Diffstat (limited to 'src/backend/utils/adt/pagefuncs.c')
-rw-r--r--src/backend/utils/adt/pagefuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/pagefuncs.c b/src/backend/utils/adt/pagefuncs.c
index 2ef133ba45b..b6a23a2a4fa 100644
--- a/src/backend/utils/adt/pagefuncs.c
+++ b/src/backend/utils/adt/pagefuncs.c
@@ -214,7 +214,7 @@ check_relation_fork(TupleDesc tupdesc, Tuplestorestate *tupstore,
memset(nulls, 0, sizeof(nulls));
values[i++] = CStringGetTextDatum(path);
- values[i++] = UInt32GetDatum(blkno);
+ values[i++] = Int64GetDatum((int64) blkno);
Assert(i == PG_CHECK_RELATION_COLS);