greenplumn logicalmsgdesc 源码
greenplumn logicalmsgdesc 代码
文件路径:/src/backend/access/rmgrdesc/logicalmsgdesc.c
/*-------------------------------------------------------------------------
*
* logicalmsgdesc.c
* rmgr descriptor routines for replication/logical/message.c
*
* Portions Copyright (c) 2015-2019, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* src/backend/access/rmgrdesc/logicalmsgdesc.c
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "replication/message.h"
void
logicalmsg_desc(StringInfo buf, XLogReaderState *record)
{
char *rec = XLogRecGetData(record);
uint8 info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
if (info == XLOG_LOGICAL_MESSAGE)
{
xl_logical_message *xlrec = (xl_logical_message *) rec;
appendStringInfo(buf, "%s message size %zu bytes",
xlrec->transactional ? "transactional" : "nontransactional",
xlrec->message_size);
}
}
const char *
logicalmsg_identify(uint8 info)
{
if ((info & ~XLR_INFO_MASK) == XLOG_LOGICAL_MESSAGE)
return "MESSAGE";
return NULL;
}
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦