返回首页

gbase数据、南大通用产品文档:GBase8sifx_lvar_alloc() 函数

更新日期:2024年09月11日

ifx_lvar_alloc() 函数指定当访存 lvarchar 数据时,是否分配内存。

语法
mint ifx_lvar_alloc(mintalloc)
mint alloc;
alloc
分配标志的值;为 1 或 0

用法
当设置标志为 1 时,ESQL/C 自动地执行此内存分配。当您不确定 SELECT 语句返
回的数据量时,
在 SELECT 语句前,
您可使用标志值 1。
当设置标志为 0 时,
ESQL/C 不
自动地执行此内存分配。

返回代码
0
函数成功。
<0
函数不成功,且返回值指示错误的原因。

GBase 8s ESQL/C 编程指南
南大通用数据技术股份有限公司
- 811 -

操作步骤
步骤1:确认当前的distribution id,在当前示例中新的Distribution ID 为3,旧的
Distribution ID 为2:

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
268
$ gcadmin showdistribution
Distribution ID: 3 | State: new | Total segment num: 5
Primary Segment Node IP
Segment ID
Duplicate Segment node IP
=====================================================================
|

前提条件

已成功执行前置脚本gs_preinstall。

用户需确保各个节点上的locale 保持一致。

需要使用前置时设置的GBase 8c 用户进行安装操作。