本文整理汇总了C++中pgstat_fetch_stat_tabentry函数的典型用法代码示例。如果您正苦于以下问题:C++ pgstat_fetch_stat_tabentry函数的具体用法?C++ pgstat_fetch_stat_tabentry怎么用?C++ pgstat_fetch_stat_tabentry使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pgstat_fetch_stat_tabentry函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: pg_stat_get_tuples_returned
Datum
pg_stat_get_tuples_returned(PG_FUNCTION_ARGS)
{
Oid relid = PG_GETARG_OID(0);
int64 result;
PgStat_StatTabEntry *tabentry;
if ((tabentry = pgstat_fetch_stat_tabentry(relid)) == NULL)
result = 0;
else
result = (int64) (tabentry->tuples_returned);
PG_RETURN_INT64(result);
}
开发者ID:BALDELab,项目名称:incubator-hawq,代码行数:14,代码来源:pgstatfuncs.c
示例2: pg_stat_get_mod_since_analyze
Datum
pg_stat_get_mod_since_analyze(PG_FUNCTION_ARGS)
{
Oid relid = PG_GETARG_OID(0);
int64 result;
PgStat_StatTabEntry *tabentry;
if ((tabentry = pgstat_fetch_stat_tabentry(relid)) == NULL)
result = 0;
else
result = (int64) (tabentry->changes_since_analyze);
PG_RETURN_INT64(result);
}
开发者ID:Argger,项目名称:PostgreSQL-Research,代码行数:14,代码来源:pgstatfuncs.c
示例3: pg_stat_get_autoanalyze_count
Datum
pg_stat_get_autoanalyze_count(PG_FUNCTION_ARGS)
{
Oid relid = PG_GETARG_OID(0);
int64 result;
PgStat_StatTabEntry *tabentry;
if ((tabentry = pgstat_fetch_stat_tabentry(relid)) == NULL)
result = 0;
else
result = (int64) (tabentry->autovac_analyze_count);
PG_RETURN_INT64(result);
}
开发者ID:codership,项目名称:postgres,代码行数:14,代码来源:pgstatfuncs.c
示例4: pg_stat_get_numscans
Datum
pg_stat_get_numscans(PG_FUNCTION_ARGS)
{
PgStat_StatTabEntry *tabentry;
Oid relid;
int64 result;
relid = PG_GETARG_OID(0);
if ((tabentry = pgstat_fetch_stat_tabentry(relid)) == NULL)
result = 0;
else
result = (int64) (tabentry->numscans);
PG_RETURN_INT64(result);
}
开发者ID:sunyangkobe,项目名称:cscd43,代码行数:16,代码来源:pgstatfuncs.c
示例5: pg_stat_get_last_autoanalyze_time
Datum
pg_stat_get_last_autoanalyze_time(PG_FUNCTION_ARGS)
{
Oid relid = PG_GETARG_OID(0);
TimestampTz result;
PgStat_StatTabEntry *tabentry;
if ((tabentry = pgstat_fetch_stat_tabentry(relid)) == NULL)
result = 0;
else
result = tabentry->autovac_analyze_timestamp;
if (result == 0)
PG_RETURN_NULL();
else
PG_RETURN_TIMESTAMPTZ(result);
}
开发者ID:BALDELab,项目名称:incubator-hawq,代码行数:17,代码来源:pgstatfuncs.c
注:本文中的pgstat_fetch_stat_tabentry函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论