timescaledb/src/compression_chunk_size.h
Matvey Arye 1e9bc6895b Add telemetry fields to track compression
The following fields are added:
-num_compressed_hypertables
-compressed_KIND_size
-uncompressed_KIND_size

Where KIND = heap, index, toast.

`num_hypertables` field does NOT count the internal hypertables
used for compressed data.

We also removed internal continuous aggs tables from the
`num_hypertables` count.
2019-10-29 19:02:58 -04:00

26 lines
714 B
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_CHUNK_SIZE_H
#define TIMESCALEDB_COMPRESSION_CHUNK_SIZE_H
#include <postgres.h>
#include <compat.h>
extern TSDLLEXPORT int ts_compression_chunk_size_delete(int32 uncompressed_chunk_id);
typedef struct TotalSizes
{
int64 uncompressed_heap_size;
int64 uncompressed_toast_size;
int64 uncompressed_index_size;
int64 compressed_heap_size;
int64 compressed_toast_size;
int64 compressed_index_size;
} TotalSizes;
extern TSDLLEXPORT TotalSizes ts_compression_chunk_size_totals(void);
#endif