mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-24 23:34:25 +08:00
This change moves the custom_type, ddl, ddl_single, insert, and partition tests under test/sql, as well as the move and reorder tests under /tsl/test/sql to our test template framework. This allows them to have different golden files for different version of Postgres. With the exception of the reorder test, all of these tests produced new output in PG12 which only differed by the exclusion of append nodes from plan explanations (this exclusion is a new feature of PG12). The reorder test had some of these modified plans, but also included a test using a table with OIDs, which is not valid in PG12. This test was modified to allow the table creation to fail, and we captured the expected output in the new golden file for PG12.
24 lines
821 B
MySQL
24 lines
821 B
MySQL
-- 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.
|
|
|
|
\c :TEST_DBNAME :ROLE_SUPERUSER
|
|
CREATE SCHEMA IF NOT EXISTS "customSchema" AUTHORIZATION :ROLE_DEFAULT_PERM_USER;
|
|
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
|
|
|
|
\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";
|
|
|
|
SELECT * FROM test.show_columns('PUBLIC."Hypertable_1"');
|
|
SELECT * FROM test.show_columns('_timescaledb_internal._hyper_1_1_chunk');
|
|
|
|
\ir include/ddl_ops_2.sql
|
|
|
|
SELECT * FROM test.show_columns('PUBLIC."Hypertable_1"');
|
|
|
|
SELECT * FROM PUBLIC."Hypertable_1";
|