FAIRYFAR-INTERNAL
 
  FAIRYFAR-INTERNAL  |  SITEMAP  |  ABOUT-ME  |  HOME  
您的足迹: Greenplum分布式事务
Greenplum分布式事务

'T' 命令

'T'命令是GPDB在PostgreSQL基础上新扩展的用于分布式事务的命令。

snippet.cpp
void
PostgresMain(int argc, char *argv[],
			 const char *dbname,
			 const char *username)
{
    switch (firstchar)
    {
      case 'Q':	/* simple query */
         ……
      case 'M': /* MPP dispatched stmt from QD */
         ……
      case 'T': /* MPP dispatched dtx protocol command from QD */
         ……

构建即将分发给执行节点的命令

snippet.cpp
/*
 * Build a dtx protocol command string to be dispatched to QE.
 */
static char *
buildGpDtxProtocolCommand(DispatchCommandDtxProtocolParms *pDtxProtocolParms,
						 int *finalLen)
{
  ……
  *pos++ = 'T';
  ……


打赏作者以资鼓励:
移动端扫码阅读: