timescaledb/test/unit/setup/insert_data.sql
Erik Nordström 7b94c573ba Refactor directory structure and tests
- Directory structure now matches common practices
- Regression tests now run with pg_regress via the PGXS infrastructure.
- Unit tests do not integrate well with pg_regress and have to be run
  separately.
- Docker functionality is separate from main Makefile. Run with
  `make -f docker.mk` to build and `make -f docker.mk run` to run
  the database in a container.
2017-01-31 20:14:19 +01:00

14 lines
536 B
SQL

set log_min_messages to DEBUG1;
set client_min_messages to DEBUG1;
\COPY "33_testNs" FROM 'import_data/batch1_dev1.tsv' NULL AS '';
\COPY "33_testNs" FROM 'import_data/batch1_dev2.tsv' NULL AS '';
\COPY "33_testNs" FROM 'import_data/batch2_dev1.tsv' NULL AS '';
CREATE TABLE "public"."chunk_test"(
time BIGINT,
metric INTEGER,
device_id TEXT
);
SELECT * FROM create_hypertable('"public"."chunk_test"', 'time', 'device_id', chunk_size_bytes => 10000);
INSERT INTO chunk_test VALUES(1, 1, 'dev1');