Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
b05dea17
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b05dea17
编写于
8月 12, 2016
作者:
H
Heikki Linnakangas
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unused functions.
上级
751b1325
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
0 addition
and
100 deletion
+0
-100
src/backend/gp_libpq_fe/fe-exec.c
src/backend/gp_libpq_fe/fe-exec.c
+0
-94
src/backend/gp_libpq_fe/gp-libpq-fe.h
src/backend/gp_libpq_fe/gp-libpq-fe.h
+0
-6
未找到文件。
src/backend/gp_libpq_fe/fe-exec.c
浏览文件 @
b05dea17
...
...
@@ -3581,97 +3581,3 @@ PQunescapeBytea(const unsigned char *strtext, size_t *retbuflen)
*
retbuflen
=
buflen
;
return
tmpbuf
;
}
int
PQsendCreateGang
(
PGconn
*
conn
,
int
size
,
void
*
binaryGangInfo
)
{
char
*
query
=
"create gang"
;
if
(
!
PQexecStart
(
conn
))
return
0
;
PQsendQueryStart
(
conn
);
/* construct the outgoing Query message */
if
(
pqPutMsgStart
(
'G'
,
false
,
conn
)
<
0
||
pqPuts
(
query
,
conn
)
<
0
||
pqPutInt
(
size
,
4
,
conn
)
<
0
||
pqPutnchar
(
binaryGangInfo
,
size
,
conn
)
<
0
||
pqPutMsgEnd
(
conn
)
<
0
)
{
pqHandleSendFailure
(
conn
);
return
0
;
}
/* remember we are using simple query protocol */
conn
->
queryclass
=
PGQUERY_SIMPLE
;
/* and remember the query text too, if possible */
/* if insufficient memory, last_query just winds up NULL */
if
(
conn
->
last_query
)
free
(
conn
->
last_query
);
conn
->
last_query
=
strdup
(
query
);
/*
* Give the data a push. In nonblock mode, don't complain if we're unable
* to send it all; PQgetResult() will do any additional flushing needed.
*/
if
(
pqFlush
(
conn
)
<
0
)
{
pqHandleSendFailure
(
conn
);
return
0
;
}
/* OK, it's launched! */
conn
->
asyncStatus
=
PGASYNC_BUSY
;
return
1
;
}
int
PQsendControlGang
(
PGconn
*
conn
,
int
gang_id
,
const
char
*
query
)
{
if
(
!
PQexecStart
(
conn
))
return
0
;
PQsendQueryStart
(
conn
);
/* construct the outgoing Query message */
if
(
pqPutMsgStart
(
'G'
,
false
,
conn
)
<
0
||
pqPuts
(
query
,
conn
)
<
0
||
pqPutInt
(
gang_id
,
4
,
conn
)
<
0
||
pqPutMsgEnd
(
conn
)
<
0
)
{
pqHandleSendFailure
(
conn
);
return
0
;
}
/* remember we are using simple query protocol */
conn
->
queryclass
=
PGQUERY_SIMPLE
;
/* and remember the query text too, if possible */
/* if insufficient memory, last_query just winds up NULL */
if
(
conn
->
last_query
)
free
(
conn
->
last_query
);
conn
->
last_query
=
strdup
(
query
);
/*
* Give the data a push. In nonblock mode, don't complain if we're unable
* to send it all; PQgetResult() will do any additional flushing needed.
*/
if
(
pqFlush
(
conn
)
<
0
)
{
pqHandleSendFailure
(
conn
);
return
0
;
}
/* OK, it's launched! */
conn
->
asyncStatus
=
PGASYNC_BUSY
;
return
1
;
}
src/backend/gp_libpq_fe/gp-libpq-fe.h
浏览文件 @
b05dea17
...
...
@@ -610,12 +610,6 @@ extern char *PQencryptPassword(const char *passwd, const char *user);
extern
int
pg_char_to_encoding
(
const
char
*
name
);
extern
const
char
*
pg_encoding_to_char
(
int
encoding
);
extern
int
pg_valid_server_encoding_id
(
int
encoding
);
/*
* special routine for sending gang management commands to dispatch agent
*/
extern
int
PQsendCreateGang
(
PGconn
*
conn
,
int
size
,
void
*
binaryGangInfo
);
extern
int
PQsendControlGang
(
PGconn
*
conn
,
int
gang_id
,
const
char
*
query
);
#ifdef __cplusplus
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录