timescaledb/test/sql/ddl.sql
Erik Nordström 9023de61db Cleanup tests and make errors less verbose
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.
2017-03-23 22:56:03 +01:00

23 lines
585 B
SQL

\o /dev/null
\ir include/create_single_db.sql
\o
\ir include/ddl_ops_1.sql
SELECT * FROM PUBLIC."Hypertable_1";
EXPLAIN (costs off) SELECT * FROM PUBLIC."Hypertable_1";
SELECT * FROM ONLY PUBLIC."Hypertable_1";
EXPLAIN (costs off) SELECT * FROM ONLY PUBLIC."Hypertable_1";
\d+ PUBLIC."Hypertable_1"
\d+ "_timescaledb_internal"."_hyper_1_root"
\d+ _timescaledb_internal._hyper_1_1_0_1_data
SELECT * FROM _timescaledb_catalog.default_replica_node;
\ir include/ddl_ops_2.sql
\d+ PUBLIC."Hypertable_1"
\d+ "_timescaledb_internal"."_hyper_1_root"
SELECT * FROM PUBLIC."Hypertable_1";