greenplumn appendonlytid 源码
greenplumn appendonlytid 代码
文件路径:/src/backend/access/appendonly/appendonlytid.c
/*-------------------------------------------------------------------------
*
* appendonlytid.c
*
* Portions Copyright (c) 2007-2009, Greenplum inc
* Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates.
*
*
* IDENTIFICATION
* src/backend/access/appendonly/appendonlytid.c
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "access/appendonlytid.h"
#define MAX_AO_TUPLE_ID_BUFFER 25
static char AOTupleIdBuffer[MAX_AO_TUPLE_ID_BUFFER];
char *
AOTupleIdToString(AOTupleId *aoTupleId)
{
int segmentFileNum = AOTupleIdGet_segmentFileNum(aoTupleId);
int64 rowNum = AOTupleIdGet_rowNum(aoTupleId);
int snprintfResult;
snprintfResult =
snprintf(AOTupleIdBuffer, MAX_AO_TUPLE_ID_BUFFER, "(%d," INT64_FORMAT ")",
segmentFileNum, rowNum);
Assert(snprintfResult >= 0);
Assert(snprintfResult < MAX_AO_TUPLE_ID_BUFFER);
return AOTupleIdBuffer;
}
相关信息
相关文章
greenplumn aomd_filehandler 源码
greenplumn appendonly_blkdir_udf 源码
greenplumn appendonly_compaction 源码
greenplumn appendonly_visimap 源码
greenplumn appendonly_visimap_entry 源码
greenplumn appendonly_visimap_store 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦