pgstatuple build err!

This commit is contained in:
林科旭
2022-07-22 18:06:40 +08:00
parent 6b90aeccb7
commit 1ad3d5fca7

View File

@ -36,6 +36,7 @@
#include "storage/buf/bufmgr.h"
#include "storage/lmgr.h"
#include "utils/builtins.h"
#include "utils/snapmgr.h"
PG_MODULE_MAGIC;
@ -195,7 +196,7 @@ static Datum pgstat_relation(Relation rel, FunctionCallInfo fcinfo)
switch (rel->rd_rel->relkind) {
case RELKIND_RELATION:
case RELKIND_TOASTVALUE:
case RELKIND_UNCATALOGED:
//case RELKIND_UNCATALOGED:
case RELKIND_SEQUENCE:
case RELKIND_LARGE_SEQUENCE:
return pgstat_heap(rel, fcinfo);
@ -250,7 +251,7 @@ static Datum pgstat_relation(Relation rel, FunctionCallInfo fcinfo)
*/
static Datum pgstat_heap(Relation rel, FunctionCallInfo fcinfo)
{
HeapScanDesc scan;
TableScanDesc scan;
HeapTuple tuple;
BlockNumber nblocks;
BlockNumber block = 0; /* next block to count free space in */