projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b8839
)
Use correct GetDatum() in pg_relation_check_pages()
author
Michael Paquier
<
[email protected]
>
Wed, 28 Oct 2020 04:59:18 +0000
(13:59 +0900)
committer
Michael Paquier
<
[email protected]
>
Wed, 28 Oct 2020 04:59:18 +0000
(13:59 +0900)
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
src/backend/utils/adt/pagefuncs.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/pagefuncs.c
b/src/backend/utils/adt/pagefuncs.c
index 2ef133ba45bd33a2d9b063bd0d280388cde7ec7d..b6a23a2a4fa8eca6c1b06aba1fd55f356790b645 100644
(file)
--- 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);