mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-22 05:31:41 +08:00
Previously, each test set their own (although mostly the same) configuration for log output and error verbosity. This is now set globally in the test runner so that tests only need to set these configuration parameters if they need to override the defaults. The log verbosity is also reduced so that errors aren't generated with the line number of the source file that output the error. Line numbers in the output can break tests when upgrading to a new PostgreSQL version that outputs a different line number.
13 lines
431 B
SQL
13 lines
431 B
SQL
\ir include/create_single_db.sql
|
|
|
|
create schema test_schema;
|
|
create table test_schema.test_table(time bigint, temp float8, device_id text);
|
|
\dt "test_schema".*
|
|
select * from create_hypertable('test_schema.test_table', 'time', 'device_id', 2);
|
|
|
|
--test partitioning in only time dimension
|
|
create table test_schema.test_1dim(time timestamp, temp float);
|
|
select create_hypertable('test_schema.test_1dim', 'time');
|
|
|
|
\dt "test_schema".*
|