mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Mark internal messages as no longer translatable
The problem that these messages protect against can only occur because a corrupted hash spill file was written, i.e., a Postgres bug. There's no reason to have them as translatable. Backpatch to 15, where these messages were changed by commit c4649cce39a4. Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/20230510175407.dwa5v477pw62ikyx@alvherre.pgsql
This commit is contained in:
parent
8cb94344c3
commit
c44b59fad4
@ -3022,7 +3022,7 @@ hashagg_batch_read(HashAggBatch *batch, uint32 *hashp)
|
|||||||
if (nread != sizeof(uint32))
|
if (nread != sizeof(uint32))
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode_for_file_access(),
|
(errcode_for_file_access(),
|
||||||
errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
|
errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
|
||||||
tape, sizeof(uint32), nread)));
|
tape, sizeof(uint32), nread)));
|
||||||
if (hashp != NULL)
|
if (hashp != NULL)
|
||||||
*hashp = hash;
|
*hashp = hash;
|
||||||
@ -3031,7 +3031,7 @@ hashagg_batch_read(HashAggBatch *batch, uint32 *hashp)
|
|||||||
if (nread != sizeof(uint32))
|
if (nread != sizeof(uint32))
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode_for_file_access(),
|
(errcode_for_file_access(),
|
||||||
errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
|
errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
|
||||||
tape, sizeof(uint32), nread)));
|
tape, sizeof(uint32), nread)));
|
||||||
|
|
||||||
tuple = (MinimalTuple) palloc(t_len);
|
tuple = (MinimalTuple) palloc(t_len);
|
||||||
@ -3043,7 +3043,7 @@ hashagg_batch_read(HashAggBatch *batch, uint32 *hashp)
|
|||||||
if (nread != t_len - sizeof(uint32))
|
if (nread != t_len - sizeof(uint32))
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode_for_file_access(),
|
(errcode_for_file_access(),
|
||||||
errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
|
errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
|
||||||
tape, t_len - sizeof(uint32), nread)));
|
tape, t_len - sizeof(uint32), nread)));
|
||||||
|
|
||||||
return tuple;
|
return tuple;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user