timescaledb/src/chunk_adaptive.h
gayyappan 1c6aacc374 Add ability to create the compressed hypertable
This happens when compression is turned on for regular hypertables.
2019-10-29 19:02:58 -04:00

31 lines
857 B
C

/*
* NOTE: adaptive chunking is still in BETA
*/
#ifndef TIMESCALEDB_CHUNK_ADAPTIVE_H
#define TIMESCALEDB_CHUNK_ADAPTIVE_H
#include <postgres.h>
typedef struct ChunkSizingInfo
{
Oid table_relid;
/* Set manually */
Oid func;
text *target_size;
const char *colname; /* The column of the dimension we are adapting
* on */
bool check_for_index; /* Set if we should check for an index on
* the dimension we are adapting on */
/* Validated info */
NameData func_name;
NameData func_schema;
int64 target_size_bytes;
} ChunkSizingInfo;
extern void ts_chunk_adaptive_sizing_info_validate(ChunkSizingInfo *info);
extern void ts_chunk_sizing_func_validate(regproc func, ChunkSizingInfo *info);
extern TSDLLEXPORT ChunkSizingInfo *ts_chunk_sizing_info_get_default_disabled(Oid table_relid);
#endif /* TIMESCALEDB_CHUNK_ADAPTIVE_H */