postgres.git / summary / log / commit / refs
commit 4bb91cc2bd135c23e5e0e36a13c36fb08c67b0fc
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: Mon Nov 23 11:31:49 2026 +0000
Adjust message style
The change of %X/%X to %X/%08X across all branches is useful because
these are new strings and there are no translations of either form yet.
Thus translating a single one of them supplies a useful source that can
be applied verbatim to all branches without a fuzzy marker. So I
backpatched that even though the older branches still used the '%X/%X'
form elsewhere.
Backpatch-through: 15
src/backend/access/common/heaptuple.c | 4 ++--
src/backend/catalog/heap.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c
index 01e6e615750..74233b5b09a 100644
--- a/src/backend/access/common/heaptuple.c
+++ b/src/backend/access/common/heaptuple.c
@@ -1643,7 +1643,7 @@ heap_datum_version_mismatch_error(Oid tupTypeid, Oid descTypeid,
/* log details about the mismatch */
ereport(LOG_SERVER_ONLY,
errcode(ERRCODE_DATUM_VERSION_MISMATCH),
- errmsg("tuple descriptor for type %s (OID %u), version %X/%X is incompatible with tuple type %s (OID %u), version %X/%X",
+ errmsg("tuple descriptor for type %s (OID %u), version %X/%08X is incompatible with tuple type %s (OID %u), version %X/%08X",
format_type_be(descTypeid), descTypeid,
LSN_FORMAT_ARGS(descVersion),
format_type_be(tupTypeid), tupTypeid,
@@ -1910,7 +1910,7 @@ heap_datum_check(HeapTupleHeader tup, TupleDesc tupleDesc)
* RECORDOID, but could be reached if some caller relabels a versioned
* datum as RECORDOID without going through heap_tuple_set_datum().
*/
- elog(ERROR, "processing record datum (%u, %d) with rowtype tupdesc (%u, %d, %X/%X)",
+ elog(ERROR, "processing record datum (%u, %d) with rowtype tupdesc (%u, %d, %X/%08X)",
tupTypeid, tupTypmod,
tupleDesc->tdtypeid, tupleDesc->tdtypmod,
LSN_FORMAT_ARGS(descVersion));
diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c
index 6f9e606a979..0ec611b9f9e 100644
--- a/src/backend/catalog/heap.c
+++ b/src/backend/catalog/heap.c
@@ -1149,7 +1149,7 @@ CheckAttributeVersions(TupleDesc td, const char *relname, int elevel)
ereport(elevel,
errmsg("attribute versions of relation \"%s\" are non-monotonic",
relname),
- errdetail("Version %X/%X of attribute \"%s\" at position %d is lower than version %X/%X of attribute \"%s\" at position %d.",
+ errdetail("Version %X/%08X of attribute \"%s\" at position %d is lower than version %X/%08X of attribute \"%s\" at position %d.",
LSN_FORMAT_ARGS(attVersion),
NameStr(TupleDescAttr(td, attnum - 1)->attname),
attnum,
[parent: bf94082c101d]