mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 02:23:49 +08:00
The memory leak job pulls TSDB dev tools from bitbucket but only two files from that repository are needed. This commit copy the files from the `tsdb-dev-tools` repository, remove the need to clone the repository, update the memory leak job to use these files, and remove the two secrets containing the environment variables `USR` and `PASSWORD`.
20 lines
668 B
SQL
20 lines
668 B
SQL
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved.
|
|
--
|
|
-- This file is licensed under the Apache License, see LICENSE-APACHE
|
|
-- at the top level directory of the TimescaleDB distribution.
|
|
|
|
DROP DATABASE IF EXISTS test;
|
|
CREATE DATABASE test;
|
|
\c test
|
|
\timing
|
|
|
|
DROP EXTENSION IF EXISTS timescaledb CASCADE;
|
|
CREATE EXTENSION timescaledb;
|
|
|
|
SELECT pg_backend_pid();
|
|
|
|
CREATE TABLE test_hyper (i bigint, j double precision, k bigint, ts timestamp);
|
|
SELECT create_hypertable('test_hyper', 'i', chunk_time_interval=>10);
|
|
|
|
INSERT INTO test_hyper SELECT random()*100, random()*100, x*10, _timescaledb_internal.to_timestamp(x) FROM generate_series(1,100000000) AS x;
|