timescaledb/src/compression_with_clause.h
gayyappan 9f64df8567 Add ts_catalog subdirectory
Move files that are related to timescaledb catalog
access to this subdirectory
2022-01-24 16:58:09 -05:00

38 lines
1.0 KiB
C

/*
* This file and its contents are licensed under the Apache License 2.0.
* Please see the included NOTICE for copyright information and
* LICENSE-APACHE for a copy of the license.
*/
#ifndef TIMESCALEDB_COMPRESSION_WITH_CLAUSE_H
#define TIMESCALEDB_COMPRESSION_WITH_CLAUSE_H
#include <postgres.h>
#include <catalog/pg_type.h>
#include "ts_catalog/catalog.h"
#include "chunk.h"
#include "with_clause_parser.h"
typedef enum CompressHypertableOption
{
CompressEnabled = 0,
CompressSegmentBy,
CompressOrderBy,
} CompressHypertableOption;
typedef struct
{
short index;
NameData colname;
bool nullsfirst;
bool asc;
} CompressedParsedCol;
extern TSDLLEXPORT WithClauseResult *ts_compress_hypertable_set_clause_parse(const List *defelems);
extern TSDLLEXPORT List *ts_compress_hypertable_parse_segment_by(WithClauseResult *parsed_options,
Hypertable *hypertable);
extern TSDLLEXPORT List *ts_compress_hypertable_parse_order_by(WithClauseResult *parsed_options,
Hypertable *hypertable);
#endif