diff options
author | Peter Eisentraut | 2018-11-20 12:30:01 +0000 |
---|---|---|
committer | Peter Eisentraut | 2018-11-20 12:30:01 +0000 |
commit | 2d9140ed266d702b305adeaf916086e1a586affe (patch) | |
tree | 90c34c273cc00f518afe0543a22e28f577018c3b /src | |
parent | 69bae23727253ca8b7616226020e241b8e923f4d (diff) |
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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/CAHZmTm18Ln62KW-G8NYvO1wbBL3QU1E76Zep=DuHmg-zS2XFAg@mail.gmail.com/
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/rmgrdesc/dbasedesc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/rmgrdesc/dbasedesc.c b/src/backend/access/rmgrdesc/dbasedesc.c index 39e26d7ed44..7ee120f1d9f 100644 --- a/src/backend/access/rmgrdesc/dbasedesc.c +++ b/src/backend/access/rmgrdesc/dbasedesc.c @@ -29,15 +29,15 @@ dbase_desc(StringInfo buf, XLogReaderState *record) xl_dbase_create_rec *xlrec = (xl_dbase_create_rec *) rec; appendStringInfo(buf, "copy dir %u/%u to %u/%u", - xlrec->src_db_id, xlrec->src_tablespace_id, - xlrec->db_id, xlrec->tablespace_id); + xlrec->src_tablespace_id, xlrec->src_db_id, + xlrec->tablespace_id, xlrec->db_id); } else if (info == XLOG_DBASE_DROP) { xl_dbase_drop_rec *xlrec = (xl_dbase_drop_rec *) rec; appendStringInfo(buf, "dir %u/%u", - xlrec->db_id, xlrec->tablespace_id); + xlrec->tablespace_id, xlrec->db_id); } } |