mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-26 08:41:09 +08:00
Add option `USE_TELEMETRY` that can be used to exclude telemetry from the compile. Telemetry-specific SQL is moved, which is only included when extension is compiled with telemetry and the notice is changed so that the message about telemetry is not printed when Telemetry is not compiled in. The following code is not compiled in when telemetry is not used: - Cross-module functions for telemetry. - Checks for telemetry job in job execution. - GUC variables `telemetry_level` and `telemetry_cloud`. Telemetry subsystem is not included when compiling without telemetry, which requires some functions to be moved out of the telemetry subsystem: - Metadata handling is moved out of the telemetry module since it is used not only with telemetry. - UUID functions are moved into a separate module instead of being part of the telemetry subsystem. - Telemetry functions are either added or removed when updating from a previous version. Tests are updated to: - Not use telemetry functions to get UUID or Metadata and instead use the moved UUID and metadata functions. - Not include telemetry information in tests that do not require it. - Configuration files do not set telemetry variables when telemetry is not compiled in. - Replaced usage of telemetry functions in non-telemetry tests with other sources of same information. Fixes #3931
21 lines
813 B
Plaintext
21 lines
813 B
Plaintext
# NOTE: any changes here require changes to two other places
|
|
# 1) tsl/test/postgresql.conf requires that it's prefix be the same as this file.
|
|
# 2) appveyor.yml needs to be updated with the same options
|
|
|
|
shared_preload_libraries=timescaledb
|
|
max_worker_processes=24
|
|
autovacuum=false
|
|
random_page_cost=1.0
|
|
timescaledb.license='apache'
|
|
@TELEMETRY_DEFAULT_SETTING@
|
|
timescaledb.last_tuned='1971-02-03 04:05:06.789012 -0300'
|
|
timescaledb.last_tuned_version='0.0.1'
|
|
timescaledb_telemetry.cloud='ci'
|
|
log_line_prefix='%u [%p] %d '
|
|
# PG12 changed the default rounding behavior of floating point
|
|
# numbers. Setting extra_float_digits=0 retains the old behavior which
|
|
# is needed to make our tests work for multiple PostgreSQL versions.
|
|
extra_float_digits=0
|
|
timescaledb.passfile='@TEST_PASSFILE@'
|
|
hba_file='@TEST_PG_HBA_FILE@'
|