postgres.git / summary / log / commit / refs

commit    c44b59fad453fd4be9656d58dd5f51a11149c961
Author:   Alvaro Herrera <alvherre@alvh.no-ip.org>
Date:     Tue May 16 09:47:25 2023 +0000
First released in: 16.0, 15.4

    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


src/backend/executor/nodeAgg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backend/executor/nodeAgg.c b/src/backend/executor/nodeAgg.c index a8a57b70633..ad81a675aa3 100644 --- a/src/backend/executor/nodeAgg.c +++ b/src/backend/executor/nodeAgg.c @@ -3022,8 +3022,8 @@ hashagg_batch_read(HashAggBatch *batch, uint32 *hashp) if (nread != sizeof(uint32)) ereport(ERROR, (errcode_for_file_access(), - errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes", - tape, sizeof(uint32), nread))); + errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes", + tape, sizeof(uint32), nread))); if (hashp != NULL) *hashp = hash; @@ -3031,8 +3031,8 @@ hashagg_batch_read(HashAggBatch *batch, uint32 *hashp) if (nread != sizeof(uint32)) ereport(ERROR, (errcode_for_file_access(), - errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes", - tape, sizeof(uint32), nread))); + errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes", + tape, sizeof(uint32), nread))); tuple = (MinimalTuple) palloc(t_len); tuple->t_len = t_len; @@ -3043,8 +3043,8 @@ hashagg_batch_read(HashAggBatch *batch, uint32 *hashp) if (nread != t_len - sizeof(uint32)) ereport(ERROR, (errcode_for_file_access(), - errmsg("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes", - tape, t_len - sizeof(uint32), nread))); + errmsg_internal("unexpected EOF for tape %p: requested %zu bytes, read %zu bytes", + tape, t_len - sizeof(uint32), nread))); return tuple; } [parent: 8cb94344c3c7]