mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
amcheck: Improve confusing message
The way it was worded, the %u placeholder could be read as the table OID. Rearrange slightly to avoid the possible confusion. Reported-by: jian he <jian.universality@gmail.com> Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CACJufxFx-25XQV%2Br23oku7ZnL958P30hyb9cFeYPv6wv7yzCCw%40mail.gmail.com
This commit is contained in:
@ -1942,7 +1942,7 @@ check_tuple(HeapCheckContext *ctx, bool *xmin_commit_status_ok,
|
||||
if (RelationGetDescr(ctx->rel)->natts < ctx->natts)
|
||||
{
|
||||
report_corruption(ctx,
|
||||
psprintf("number of attributes %u exceeds maximum expected for table %u",
|
||||
psprintf("number of attributes %u exceeds maximum %u expected for table",
|
||||
ctx->natts,
|
||||
RelationGetDescr(ctx->rel)->natts));
|
||||
return;
|
||||
|
Reference in New Issue
Block a user