forked from pgEdge/spock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spock_output_config.h
62 lines (54 loc) · 1.14 KB
/
spock_output_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*-------------------------------------------------------------------------
*
* spock_output_config.h
* spock output config helper functions
*
* Copyright (c) 2022-2023, pgEdge, Inc.
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, The Regents of the University of California
*
*-------------------------------------------------------------------------
*/
#ifndef SPOCK_OUTPUT_CONFIG_H
#define SPOCK_OUTPUT_CONFIG_H
#include "nodes/pg_list.h"
#include "spock_output_plugin.h"
inline static bool
server_float4_byval(void)
{
#ifdef USE_FLOAT4_BYVAL
return true;
#else
return false;
#endif
}
inline static bool
server_float8_byval(void)
{
#ifdef USE_FLOAT8_BYVAL
return true;
#else
return false;
#endif
}
inline static bool
server_integer_datetimes(void)
{
#ifdef USE_INTEGER_DATETIMES
return true;
#else
return false;
#endif
}
inline static bool
server_bigendian(void)
{
#ifdef WORDS_BIGENDIAN
return true;
#else
return false;
#endif
}
extern int process_parameters(List *options, SpockOutputData *data);
extern List *prepare_startup_message(SpockOutputData *data);
#endif