mirror of
https://github.com/timescale/timescaledb.git
synced 2025-04-19 16:31:51 +08:00
The installation metadata has been refactored: - The installation metadata store now takes Datums of any type as input and output - Move metadata functions from uuid.c -> metadata.c - Make metadata functions return native types rather than text, including for tests Telemetry tests for ssl and nossl have been combined. Note that PG 9.6 does not have pg_backend_random() that gives us a secure random numbers for UUIDs that we send in telemetry. Therefore, we fall back to the generating the UUID from the timestamp if we are on PG 9.6. This change also fixes a number of test issues. For instance, in the telemetry test the escape char `E` was passed on as part of the response string when set as a variable with `\set`. This was not detected before because the response parser didn't parse the start of the response properly. A number of fixes have been made to the formatting of log messages for telemetry to conform to the PostgreSQL standard as well as being consistent with other messages. Numerous build issues on Windows have been resolved. There is also new functionality to get OS version info on Windows (for telemetry), including a SQL function get_os_info() to retrieve this information. The net library will now allow connecting to a servicename, e.g., http or https. A port is resolved from this service name via getaddrinfo(). An explicit port can still be given, and it that case it will not resolve the service name. Databases the are updated to the new version of the extension will have an install_timestamp in their installation metadata that does not reflect the actual original install date of the extension. To be able to distinguish these updated installations from those that are freshly installed, we add a bogus "epoch" install_timestamp in the update script. Parsing of the version string in the telemetry response has been refactored to be more amenable to testing. Tests have been added.
33 lines
774 B
Batchfile
33 lines
774 B
Batchfile
@echo off
|
|
:: This bootstrap scripts set up the build environment for TimescaleDB
|
|
:: Any flags will be passed on to CMake, e.g.,
|
|
:: ./bootstrap.bat -DCMAKE_BUILD_TYPE="Debug"
|
|
|
|
|
|
:: Get source directory to build from
|
|
set ORIG=%0
|
|
for %%F in (%ORIG%) do set SRC_DIR=%%~dpF
|
|
|
|
SET BUILD_DIR=./build
|
|
|
|
IF EXIST "%BUILD_DIR%" (
|
|
setlocal EnableDelayedExpansion
|
|
ECHO Build system already initialized in %BUILD_DIR%
|
|
SET /P resp="Do you want to remove it (this is IMMEDIATE and PERMANENT), y/n? "
|
|
IF "!resp!" == "y" (
|
|
rd /s /q "%BUILD_DIR%"
|
|
) ELSE (
|
|
ECHO Exiting
|
|
EXIT
|
|
)
|
|
)
|
|
|
|
mkdir "%BUILD_DIR%"
|
|
cd "%BUILD_DIR%"
|
|
cmake %SRC_DIR% -A x64 %*
|
|
|
|
ECHO ---
|
|
ECHO TimescaleDB build system initialized in %BUILD_DIR%.
|
|
ECHO To compile, do:
|
|
ECHO cmake --build %BUILD_DIR% --config Release
|