OATT_PERSISTENT = 0x01,
OATT_TEMPORARY = 0x02,
OATT_NONE = 0x00
-} OnlyneAnalyzeTableType;
+} OnlineAnalyzeTableType;
static const struct config_enum_entry online_analyze_table_type_options[] =
{
default:
{
Relation rel;
- OnlyneAnalyzeTableType reltype;
+ OnlineAnalyzeTableType reltype;
rel = RelationIdGetRelation(relOid);
- reltype = (rel->rd_istemp || rel->rd_islocaltemp) ? OATT_TEMPORARY : OATT_PERSISTENT;
+ reltype =
+#if PG_VERSION_NUM >= 90100
+ (rel->rd_rel->relpersistence == RELPERSISTENCE_TEMP)
+#else
+ (rel->rd_istemp || rel->rd_islocaltemp)
+#endif
+ ? OATT_TEMPORARY : OATT_PERSISTENT;
RelationClose(rel);
/*
DefineCustomEnumVariable(
"online_analyze.table_type",
- "Type(s) of table for onlyne analyze: all(default), persistent, temporary, none",
+ "Type(s) of table for online analyze: all(default), persistent, temporary, none",
NULL,
&online_analyze_table_type,
#if PG_VERSION_NUM >= 80400