mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 10:33:27 +08:00
Link to Telemetry page explains more than disable it Co-authored-by: Mike Freedman <mfreed@cs.princeton.edu>
34 lines
1.7 KiB
PL/PgSQL
34 lines
1.7 KiB
PL/PgSQL
-- 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.
|
|
|
|
DO language plpgsql $$
|
|
DECLARE
|
|
telemetry_string TEXT;
|
|
BEGIN
|
|
IF current_setting('timescaledb.telemetry_level') = 'off'
|
|
THEN
|
|
telemetry_string = E'Note: Please enable telemetry to help us improve our product by running: ALTER DATABASE "' || current_database() || E'" SET timescaledb.telemetry_level = ''basic'';';
|
|
ELSE
|
|
telemetry_string = E'Note: TimescaleDB collects anonymous reports to better understand and assist our users.\nFor more information and how to disable, please see our docs https://docs.timescale.com/timescaledb/latest/how-to-guides/configuration/telemetry.';
|
|
END IF;
|
|
|
|
RAISE WARNING E'%\n%\n',
|
|
E'\nWELCOME TO\n' ||
|
|
E' _____ _ _ ____________ \n' ||
|
|
E'|_ _(_) | | | _ \\ ___ \\ \n' ||
|
|
E' | | _ _ __ ___ ___ ___ ___ __ _| | ___| | | | |_/ / \n' ||
|
|
' | | | | _ ` _ \ / _ \/ __|/ __/ _` | |/ _ \ | | | ___ \ ' || E'\n' ||
|
|
' | | | | | | | | | __/\__ \ (_| (_| | | __/ |/ /| |_/ /' || E'\n' ||
|
|
' |_| |_|_| |_| |_|\___||___/\___\__,_|_|\___|___/ \____/' || E'\n' ||
|
|
E' Running version ' || '@PROJECT_VERSION_MOD@' || E'\n' ||
|
|
|
|
E'For more information on TimescaleDB, please visit the following links:\n\n'
|
|
||
|
|
E' 1. Getting started: https://docs.timescale.com/timescaledb/latest/getting-started\n' ||
|
|
E' 2. API reference documentation: https://docs.timescale.com/api/latest\n' ||
|
|
E' 3. How TimescaleDB is designed: https://docs.timescale.com/timescaledb/latest/overview/core-concepts\n',
|
|
telemetry_string;
|
|
END;
|
|
$$;
|