Use nbtdesc "level" field name consistently.
authorPeter Geoghegan <[email protected]>
Wed, 19 Apr 2023 19:15:15 +0000 (12:15 -0700)
committerPeter Geoghegan <[email protected]>
Wed, 19 Apr 2023 19:15:15 +0000 (12:15 -0700)
The "lev" name that appeared in NEWROOT nbtree record desc output was
inconsistent with the symbol name from the underlying C struct.  It was
also inconsistent with nbtdesc output for other nearby record types with
similar level fields.

Standardize on "level" to make everything consistent.

Follow-up to commit 1c453cfd.

src/backend/access/rmgrdesc/nbtdesc.c

index 281a015f5632989418935bd070e43801c5e935ea..e4fbaa4d5d5f957ea31dca637ea0c54c3f1a6279 100644 (file)
@@ -106,7 +106,7 @@ btree_desc(StringInfo buf, XLogReaderState *record)
            {
                xl_btree_newroot *xlrec = (xl_btree_newroot *) rec;
 
-               appendStringInfo(buf, "lev: %u", xlrec->level);
+               appendStringInfo(buf, "level: %u", xlrec->level);
                break;
            }
        case XLOG_BTREE_REUSE_PAGE: