mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Remove workarounds for avoiding [U]INT64_FORMAT in translatable strings.
Further code simplification along the same lines as d914eb347
and earlier patches.
Aleksander Alekseev, Japin Li
Discussion: https://postgr.es/m/CAJ7c6TMSKi3Xs8h5MP38XOnQQpBLazJvVxVfPn++roitDJcR7g@mail.gmail.com
This commit is contained in:
@@ -1017,13 +1017,10 @@ brin_summarize_range(PG_FUNCTION_ARGS)
|
||||
errhint("BRIN control functions cannot be executed during recovery.")));
|
||||
|
||||
if (heapBlk64 > BRIN_ALL_BLOCKRANGES || heapBlk64 < 0)
|
||||
{
|
||||
char *blk = psprintf(INT64_FORMAT, heapBlk64);
|
||||
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
|
||||
errmsg("block number out of range: %s", blk)));
|
||||
}
|
||||
errmsg("block number out of range: %lld",
|
||||
(long long) heapBlk64)));
|
||||
heapBlk = (BlockNumber) heapBlk64;
|
||||
|
||||
/*
|
||||
@@ -1094,13 +1091,10 @@ brin_desummarize_range(PG_FUNCTION_ARGS)
|
||||
errhint("BRIN control functions cannot be executed during recovery.")));
|
||||
|
||||
if (heapBlk64 > MaxBlockNumber || heapBlk64 < 0)
|
||||
{
|
||||
char *blk = psprintf(INT64_FORMAT, heapBlk64);
|
||||
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
|
||||
errmsg("block number out of range: %s", blk)));
|
||||
}
|
||||
errmsg("block number out of range: %lld",
|
||||
(long long) heapBlk64)));
|
||||
heapBlk = (BlockNumber) heapBlk64;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user