Skip to content

Commit c44b59f

Browse files
committed
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 c4649cc. Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/20230510175407.dwa5v477pw62ikyx@alvherre.pgsql
1 parent 8cb9434 commit c44b59f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/executor/nodeAgg.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3022,17 +3022,17 @@ hashagg_batch_read(HashAggBatch *batch, uint32 *hashp)
30223022
if (nread != sizeof(uint32))
30233023
ereport(ERROR,
30243024
(errcode_for_file_access(),
3025-
errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
3026-
tape, sizeof(uint32), nread)));
3025+
errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
3026+
tape, sizeof(uint32), nread)));
30273027
if (hashp != NULL)
30283028
*hashp = hash;
30293029

30303030
nread = LogicalTapeRead(tape, &t_len, sizeof(t_len));
30313031
if (nread != sizeof(uint32))
30323032
ereport(ERROR,
30333033
(errcode_for_file_access(),
3034-
errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
3035-
tape, sizeof(uint32), nread)));
3034+
errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
3035+
tape, sizeof(uint32), nread)));
30363036

30373037
tuple = (MinimalTuple) palloc(t_len);
30383038
tuple->t_len = t_len;
@@ -3043,8 +3043,8 @@ hashagg_batch_read(HashAggBatch *batch, uint32 *hashp)
30433043
if (nread != t_len - sizeof(uint32))
30443044
ereport(ERROR,
30453045
(errcode_for_file_access(),
3046-
errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
3047-
tape, t_len - sizeof(uint32), nread)));
3046+
errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes",
3047+
tape, t_len - sizeof(uint32), nread)));
30483048

30493049
return tuple;
30503050
}

0 commit comments

Comments
 (0)