-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathScriptFiles.cmake
More file actions
97 lines (86 loc) · 2.73 KB
/
Copy pathScriptFiles.cmake
File metadata and controls
97 lines (86 loc) · 2.73 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File defining all variables used to generate script files.
#
# This is needed for the downgrade script since files can be added and removed
# and it is necessary to get a list of all files available for a specific
# version.
#
# We only care about files that are part of generating the prolog or epilog for
# the update scripts, to the actual versioned files are not necessary to put
# here.
# Source files that define the schemas and tables for our metadata
set(PRE_INSTALL_SOURCE_FILES
header.sql # Must be first since it sets up the search path
pre_install/schemas.sql
pre_install/types.pre.sql
pre_install/types.functions.sql
pre_install/types.post.sql # Must be before tables.sql
pre_install/tables.sql
pre_install/cache.sql
pre_install/insert_data.sql)
# Source files that define functions and need to be rerun in update
set(PRE_INSTALL_FUNCTION_FILES
pre_install/types.functions.sql
)
# The rest of the source files defining mostly functions
set(SOURCE_FILES
hypertable.sql
chunk.sql
util_time.sql
util_internal_table_ddl.sql
chunk_constraint.sql
partitioning.sql
ddl_api.sql
ddl_triggers.sql
bookend.sql
time_bucket.sql
version.sql
size_utils.sql
histogram.sql
bgw_scheduler.sql
metadata.sql
uuidv7.sql
ts_stats.sql
views.sql
views_compat.sql
views_experimental.sql
gapfill.sql
compression.sql
maintenance_utils.sql
restoring.sql
job_api.sql
policy_api.sql
policy_internal.sql
cagg_utils.sql
job_stat_history_log_retention.sql
osm_api.sql
compression_defaults.sql
sparse_index.sql)
if(ENABLE_DEBUG_UTILS AND CMAKE_BUILD_TYPE MATCHES Debug)
list(APPEND SOURCE_FILES debug_build_utils.sql)
endif()
if(ENABLE_DEBUG_UTILS)
list(APPEND SOURCE_FILES debug_utils.sql)
endif()
if(USE_TELEMETRY)
list(APPEND SOURCE_FILES with_telemetry.sql)
else()
list(APPEND SOURCE_FILES without_telemetry.sql)
endif()
# Compatibility layer for timescaledb 2.12 for internal functions that got moved into _timescaledb_functions
list(APPEND SOURCE_FILES
compat.sql)
# These files need to be last in the scripts.
list(APPEND SOURCE_FILES
bgw_startup.sql)
if(APACHE_ONLY)
list(APPEND SOURCE_FILES comment_apache.sql)
else()
list(APPEND SOURCE_FILES comment_tsl.sql)
endif()
# These files should be prepended to update scripts so that they are executed
# before anything else during updates
set(PRE_UPDATE_FILES updates/pre-version-change.sql updates/pre-update.sql)
set(PRE_DOWNGRADE_FILES updates/pre-version-change.sql)
# The POST_UPDATE_FILES should be executed as the last part of the update
# script. sets state for executing POST_UPDATE_FILES during ALTER EXTENSION
set(POST_UPDATE_FILES updates/post-update.sql)