Skip to content

Commit 2d9140e

Browse files
committed
Make WAL description output more consistent
The output for record types XLOG_DBASE_CREATE and XLOG_DBASE_DROP used the order dbid/tablespaceid, whereas elsewhere the order is tablespaceid/dbid[/relfilenodeid]. Flip the order for those two types to make it consistent. Author: Jean-Christophe Arnu <jcarnu@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAHZmTm18Ln62KW-G8NYvO1wbBL3QU1E76Zep=DuHmg-zS2XFAg@mail.gmail.com/
1 parent 69bae23 commit 2d9140e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/access/rmgrdesc/dbasedesc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ dbase_desc(StringInfo buf, XLogReaderState *record)
2929
xl_dbase_create_rec *xlrec = (xl_dbase_create_rec *) rec;
3030

3131
appendStringInfo(buf, "copy dir %u/%u to %u/%u",
32-
xlrec->src_db_id, xlrec->src_tablespace_id,
33-
xlrec->db_id, xlrec->tablespace_id);
32+
xlrec->src_tablespace_id, xlrec->src_db_id,
33+
xlrec->tablespace_id, xlrec->db_id);
3434
}
3535
else if (info == XLOG_DBASE_DROP)
3636
{
3737
xl_dbase_drop_rec *xlrec = (xl_dbase_drop_rec *) rec;
3838

3939
appendStringInfo(buf, "dir %u/%u",
40-
xlrec->db_id, xlrec->tablespace_id);
40+
xlrec->tablespace_id, xlrec->db_id);
4141
}
4242
}
4343

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy