mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 11:03:36 +08:00
Windows requires all functions to have the same linkage everywhere: if they have TSDLLEXPORT in one header, they need to have it in every C file, and every other header also.
24 lines
822 B
C
24 lines
822 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_TIME_BUCKET_H
|
|
#define TIMESCALEDB_TIME_BUCKET_H
|
|
|
|
#include <postgres.h>
|
|
#include <fmgr.h>
|
|
|
|
#include "export.h"
|
|
|
|
extern TSDLLEXPORT Datum ts_int16_bucket(PG_FUNCTION_ARGS);
|
|
extern TSDLLEXPORT Datum ts_int32_bucket(PG_FUNCTION_ARGS);
|
|
extern TSDLLEXPORT Datum ts_int64_bucket(PG_FUNCTION_ARGS);
|
|
extern TSDLLEXPORT Datum ts_date_bucket(PG_FUNCTION_ARGS);
|
|
extern TSDLLEXPORT Datum ts_timestamp_bucket(PG_FUNCTION_ARGS);
|
|
extern TSDLLEXPORT Datum ts_timestamptz_bucket(PG_FUNCTION_ARGS);
|
|
|
|
extern TSDLLEXPORT int64 ts_time_bucket_by_type(int64 interval, int64 timestamp, Oid type);
|
|
|
|
#endif /* TIMESCALEDB_TIME_BUCKET_H */
|