Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d9140e

Browse files
committed
Make WAL description output more consistent
The output for record types XLOG_DBASE_CREATE and XLOG_DBASE_DROP usedthe order dbid/tablespaceid, whereas elsewhere the order istablespaceid/dbid[/relfilenodeid]. Flip the order for those two typesto 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 parent69bae23 commit2d9140e

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
elseif (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)

[8]ページ先頭

©2009-2025 Movatter.jp