Skip to content

Commit

Permalink
Use explicit timezone in tests
Browse files Browse the repository at this point in the history
Don't depend on pg_regress timezone in our tests as this is gonna
change with the next minor release of postgres.

postgres/postgres@b8ea0f67
  • Loading branch information
svenklemm committed Sep 18, 2024
1 parent 2c3ff7a commit ce58ce0
Show file tree
Hide file tree
Showing 82 changed files with 165 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tsl/test/expected/bgw_db_scheduler_fixed.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
-- Setup
--
\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
-- this mock_start_time doesnt seem to be used anywhere
CREATE OR REPLACE FUNCTION ts_bgw_db_scheduler_test_run_and_wait_for_scheduler_finish(timeout INT = -1, mock_start_time INT = 0) RETURNS VOID
AS :MODULE_PATHNAME LANGUAGE C VOLATILE;
Expand Down Expand Up @@ -93,6 +94,7 @@ $BODY$;
DELETE FROM _timescaledb_config.bgw_job WHERE TRUE;
TRUNCATE _timescaledb_internal.bgw_job_stat;
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
CREATE TABLE public.bgw_log(
msg_no INT,
mock_time BIGINT,
Expand Down Expand Up @@ -297,6 +299,7 @@ select * from _timescaledb_config.bgw_job;
(1 row)

\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
--Tests that the scheduler start a job right away if it's the first time and there is no job_stat entry for it
SELECT ts_bgw_db_scheduler_test_run_and_wait_for_scheduler_finish(25);
ts_bgw_db_scheduler_test_run_and_wait_for_scheduler_finish
Expand Down Expand Up @@ -421,6 +424,7 @@ SELECT insert_job('test_job_2', 'bgw_test_job_2_error', INTERVAL '800ms', INTERV
(1 row)

\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
--Run the first time and error
SELECT ts_bgw_db_scheduler_test_run_and_wait_for_scheduler_finish(25);
ts_bgw_db_scheduler_test_run_and_wait_for_scheduler_finish
Expand Down Expand Up @@ -1244,6 +1248,7 @@ SELECT _timescaledb_functions.stop_background_workers();
t
(1 row)

SET timezone TO PST8PDT;
CREATE OR REPLACE FUNCTION ts_test_job_refresh() RETURNS TABLE(
id INTEGER,
application_name NAME,
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_ddl-14.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SELECT table_name FROM create_hypertable('conditions', 'timec');

-- schema tests
\c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER
SET timezone TO PST8PDT;
-- drop if the tablespace1 and/or tablespace2 exists
SET client_min_messages TO error;
DROP TABLESPACE IF EXISTS tablespace1;
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_ddl-15.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SELECT table_name FROM create_hypertable('conditions', 'timec');

-- schema tests
\c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER
SET timezone TO PST8PDT;
-- drop if the tablespace1 and/or tablespace2 exists
SET client_min_messages TO error;
DROP TABLESPACE IF EXISTS tablespace1;
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_ddl-16.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SELECT table_name FROM create_hypertable('conditions', 'timec');

-- schema tests
\c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER
SET timezone TO PST8PDT;
-- drop if the tablespace1 and/or tablespace2 exists
SET client_min_messages TO error;
DROP TABLESPACE IF EXISTS tablespace1;
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_ddl-17.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SELECT table_name FROM create_hypertable('conditions', 'timec');

-- schema tests
\c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER
SET timezone TO PST8PDT;
-- drop if the tablespace1 and/or tablespace2 exists
SET client_min_messages TO error;
DROP TABLESPACE IF EXISTS tablespace1;
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_drop_chunks.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
--
-- Check that drop chunks with a unique constraint works as expected.
--
Expand Down
2 changes: 2 additions & 0 deletions tsl/test/expected/cagg_dump.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
SET timezone TO PST8PDT;
CREATE TYPE custom_type AS (high int, low int);
CREATE TABLE conditions_before (
timec TIMESTAMPTZ NOT NULL,
Expand Down Expand Up @@ -158,6 +159,7 @@ SELECT _timescaledb_functions.stop_background_workers();
(1 row)

\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
--make sure the appropriate DROP are still blocked.
\set ON_ERROR_STOP 0
DROP table :"MAT_SCHEMA_NAME".:"MAT_TABLE_NAME";
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_errors.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
-- LICENSE-TIMESCALE for a copy of the license.
\set ON_ERROR_STOP 0
\set VERBOSITY default
SET timezone TO PST8PDT;
--negative tests for query validation
create table mat_t1( a integer, b integer,c TEXT);
CREATE TABLE conditions (
Expand Down
2 changes: 2 additions & 0 deletions tsl/test/expected/cagg_joins.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\set VERBOSITY default
SET timezone TO PST8PDT;
CREATE TABLE conditions(
day TIMESTAMPTZ NOT NULL,
city text NOT NULL,
Expand Down Expand Up @@ -1227,6 +1228,7 @@ ALTER USER MAPPING FOR :ROLE_DEFAULT_PERM_USER
OPTIONS (ADD password_required 'false');
GRANT USAGE ON FOREIGN SERVER loopback TO :ROLE_DEFAULT_PERM_USER;
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER;
SET timezone TO PST8PDT;
CREATE FOREIGN TABLE devices_fdw (
device_id int not null,
name text,
Expand Down
3 changes: 3 additions & 0 deletions tsl/test/expected/cagg_policy.out
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ SELECT a, count(b)
FROM int_tab
GROUP BY time_bucket(1, a), a WITH NO DATA;
\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
DELETE FROM _timescaledb_config.bgw_job WHERE TRUE;
SET ROLE :ROLE_DEFAULT_PERM_USER;
SELECT count(*) FROM _timescaledb_config.bgw_job;
Expand Down Expand Up @@ -260,6 +261,7 @@ SELECT hypertable_id as mat_id FROM _timescaledb_config.bgw_job where id = :job_
\set VERBOSITY terse
\set ON_ERROR_STOP 1
\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
UPDATE _timescaledb_config.bgw_job
SET config = jsonb_build_object('mat_hypertable_id', :mat_id)
WHERE id = :job_id;
Expand Down Expand Up @@ -822,6 +824,7 @@ WHERE id = :job_id;
(1 row)

\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
UPDATE _timescaledb_config.bgw_job
SET config = jsonb_build_object('mat_hypertable_id', :mat_id)
WHERE id = :job_id;
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_query.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
-- LICENSE-TIMESCALE for a copy of the license.
-- Connect as superuser to use SET ROLE later
\c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER
SET timezone TO PST8PDT;
-- Run tests with default role
SET ROLE :ROLE_DEFAULT_PERM_USER;
\set TEST_BASE_NAME cagg_query
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_query_using_merge.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
-- LICENSE-TIMESCALE for a copy of the license.
-- Connect as superuser to use SET ROLE later
\c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER
SET timezone TO PST8PDT;
-- Run tests with default role
SET ROLE :ROLE_DEFAULT_PERM_USER;
-- Enable MERGE statements for continuous aggregate refresh
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_refresh.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
SET timezone TO PST8PDT;
\ir include/cagg_refresh_common.sql
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_refresh_using_merge.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
-- LICENSE-TIMESCALE for a copy of the license.
-- Enable MERGE statements for continuous aggregate refresh
SET timescaledb.enable_merge_on_cagg_refresh TO ON;
SET timezone TO PST8PDT;
\ir include/cagg_refresh_common.sql
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_repair-14.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
CREATE PROCEDURE _timescaledb_internal.cagg_try_repair (
cagg_view REGCLASS,
force_rebuild BOOLEAN
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_repair-15.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
CREATE PROCEDURE _timescaledb_internal.cagg_try_repair (
cagg_view REGCLASS,
force_rebuild BOOLEAN
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_repair-16.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
CREATE PROCEDURE _timescaledb_internal.cagg_try_repair (
cagg_view REGCLASS,
force_rebuild BOOLEAN
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_repair-17.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
CREATE PROCEDURE _timescaledb_internal.cagg_try_repair (
cagg_view REGCLASS,
force_rebuild BOOLEAN
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_union_view-14.out
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SELECT _timescaledb_functions.stop_background_workers();
(1 row)

\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
\set PREFIX 'EXPLAIN (analyze, costs off, timing off, summary off)'
CREATE TABLE metrics(f1 int, f2 int, time timestamptz NOT NULL, device_id int, value float);
SELECT create_hypertable('metrics','time');
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_union_view-15.out
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SELECT _timescaledb_functions.stop_background_workers();
(1 row)

\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
\set PREFIX 'EXPLAIN (analyze, costs off, timing off, summary off)'
CREATE TABLE metrics(f1 int, f2 int, time timestamptz NOT NULL, device_id int, value float);
SELECT create_hypertable('metrics','time');
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_union_view-16.out
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SELECT _timescaledb_functions.stop_background_workers();
(1 row)

\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
\set PREFIX 'EXPLAIN (analyze, costs off, timing off, summary off)'
CREATE TABLE metrics(f1 int, f2 int, time timestamptz NOT NULL, device_id int, value float);
SELECT create_hypertable('metrics','time');
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_union_view-17.out
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SELECT _timescaledb_functions.stop_background_workers();
(1 row)

\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
\set PREFIX 'EXPLAIN (analyze, costs off, timing off, summary off)'
CREATE TABLE metrics(f1 int, f2 int, time timestamptz NOT NULL, device_id int, value float);
SELECT create_hypertable('metrics','time');
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_usage-14.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
\set ON_ERROR_STOP 0
SET client_min_messages TO NOTICE;
SET work_mem TO '64MB';
SET timezone TO PST8PDT;
-- START OF USAGE TEST --
--First create your hypertable
CREATE TABLE device_readings (
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_usage-15.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
\set ON_ERROR_STOP 0
SET client_min_messages TO NOTICE;
SET work_mem TO '64MB';
SET timezone TO PST8PDT;
-- START OF USAGE TEST --
--First create your hypertable
CREATE TABLE device_readings (
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_usage-16.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
\set ON_ERROR_STOP 0
SET client_min_messages TO NOTICE;
SET work_mem TO '64MB';
SET timezone TO PST8PDT;
-- START OF USAGE TEST --
--First create your hypertable
CREATE TABLE device_readings (
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/cagg_usage-17.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
\set ON_ERROR_STOP 0
SET client_min_messages TO NOTICE;
SET work_mem TO '64MB';
SET timezone TO PST8PDT;
-- START OF USAGE TEST --
--First create your hypertable
CREATE TABLE device_readings (
Expand Down
2 changes: 2 additions & 0 deletions tsl/test/expected/cagg_utils.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
SET search_path TO public, _timescaledb_functions;
SET timezone TO PST8PDT;
CREATE TABLE devices (
id INTEGER,
name TEXT
Expand Down Expand Up @@ -263,6 +264,7 @@ CREATE OR REPLACE FUNCTION cagg_get_bucket_function(
mat_hypertable_id INTEGER
) RETURNS regprocedure AS :MODULE_PATHNAME, 'ts_continuous_agg_get_bucket_function' LANGUAGE C STRICT VOLATILE;
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
CREATE TABLE timestamp_ht (
time timestamp NOT NULL,
value float
Expand Down
3 changes: 3 additions & 0 deletions tsl/test/expected/cagg_watermark.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
SET timezone TO PST8PDT;
\set EXPLAIN_ANALYZE 'EXPLAIN (analyze,costs off,timing off,summary off)'
CREATE TABLE continuous_agg_test(time int, data int);
SELECT create_hypertable('continuous_agg_test', 'time', chunk_time_interval=> 10);
Expand Down Expand Up @@ -74,6 +75,7 @@ SELECT * from _timescaledb_catalog.continuous_aggs_hypertable_invalidation_log;
\c :TEST_DBNAME :ROLE_SUPERUSER
INSERT INTO _timescaledb_catalog.continuous_aggs_invalidation_threshold VALUES (1, 15);
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
INSERT INTO continuous_agg_test VALUES (10, 1), (11, 2), (21, 3), (22, 4);
SELECT * FROM _timescaledb_catalog.continuous_aggs_invalidation_threshold;
hypertable_id | watermark
Expand Down Expand Up @@ -347,6 +349,7 @@ UPDATE _timescaledb_catalog.continuous_aggs_invalidation_threshold
SET watermark = 2
WHERE hypertable_id = 5;
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
INSERT INTO ts_continuous_test VALUES (1, 1);
SELECT * FROM _timescaledb_catalog.continuous_aggs_invalidation_threshold;
hypertable_id | watermark
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/chunk_merge.out
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CREATE OR REPLACE FUNCTION _timescaledb_internal.test_merge_chunks_on_dimension(
RETURNS VOID
AS :TSL_MODULE_PATHNAME, 'ts_test_merge_chunks_on_dimension' LANGUAGE C VOLATILE;
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
CREATE TABLE test1 ("Time" timestamptz, i integer, value integer);
SELECT table_name FROM Create_hypertable('test1', 'Time', chunk_time_interval=> INTERVAL '1 hour');
NOTICE: adding not-null constraint to column "Time"
Expand Down
2 changes: 2 additions & 0 deletions tsl/test/expected/compression.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
SET timescaledb.enable_transparent_decompression to OFF;
SET timezone TO PST8PDT;
\set PREFIX 'EXPLAIN (analyze, verbose, costs off, timing off, summary off)'
\ir include/rand_generator.sql
-- This file and its contents are licensed under the Timescale License.
Expand Down Expand Up @@ -1497,6 +1498,7 @@ SET reltuples = 0, relpages = 0
WHERE ht.table_name = 'stattest2' AND ch.hypertable_id = ht.id
AND ch.compressed_chunk_id > 0 );
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
-- reltuples is initially -1 on PG14 before VACUUM/ANALYZE has been run
SELECT relname, CASE WHEN reltuples > 0 THEN reltuples ELSE 0 END AS reltuples, relpages, relallvisible FROM pg_class
WHERE relname in ( SELECT ch.table_name FROM
Expand Down
2 changes: 2 additions & 0 deletions tsl/test/expected/compression_bgw.out
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CREATE ROLE NOLOGIN_ROLE WITH nologin noinherit;
GRANT CREATE ON SCHEMA public TO NOLOGIN_ROLE;
GRANT NOLOGIN_ROLE TO :ROLE_DEFAULT_PERM_USER WITH ADMIN OPTION;
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
CREATE TABLE conditions (
time TIMESTAMPTZ NOT NULL,
location TEXT NOT NULL,
Expand Down Expand Up @@ -286,6 +287,7 @@ ERROR: permission denied to start background process as role "nologin_role"
DROP TABLE test_table_nologin;
RESET ROLE;
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
CREATE TABLE conditions(
time TIMESTAMPTZ NOT NULL,
device INTEGER,
Expand Down
2 changes: 2 additions & 0 deletions tsl/test/expected/compression_ddl.out
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SET client_min_messages = NOTICE;
CREATE TABLESPACE tablespace1 OWNER :ROLE_DEFAULT_PERM_USER LOCATION :TEST_TABLESPACE1_PATH;
CREATE TABLESPACE tablespace2 OWNER :ROLE_DEFAULT_PERM_USER LOCATION :TEST_TABLESPACE2_PATH;
\c :TEST_DBNAME :ROLE_DEFAULT_PERM_USER
SET timezone TO PST8PDT;
CREATE TABLE test1 ("Time" timestamptz, i integer, b bigint, t text);
SELECT table_name from create_hypertable('test1', 'Time', chunk_time_interval=> INTERVAL '1 day');
NOTICE: adding not-null constraint to column "Time"
Expand Down Expand Up @@ -562,6 +563,7 @@ SELECT count(*) FROM test1_cont_view;
(1 row)

\c :TEST_DBNAME :ROLE_SUPERUSER
SET timezone TO PST8PDT;
SELECT chunk.schema_name|| '.' || chunk.table_name as "COMPRESSED_CHUNK_NAME"
FROM _timescaledb_catalog.chunk chunk
INNER JOIN _timescaledb_catalog.hypertable comp_hyper ON (chunk.hypertable_id = comp_hyper.id)
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/compression_insert.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
SET timezone TO PST8PDT;
\set PREFIX 'EXPLAIN (costs off, summary off, timing off) '
\set ANALYZE 'EXPLAIN (analyze, costs off, summary off, timing off) '
CREATE TABLE test1 (timec timestamptz , i integer ,
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/continuous_aggs-14.out
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ INNER JOIN _timescaledb_catalog.hypertable h ON(h.id = ca.mat_hypertable_id)
WHERE user_view_name = 'mat_drop_test'
\gset
SET client_min_messages TO NOTICE;
SET timezone TO PST8PDT;
CALL refresh_continuous_aggregate('mat_drop_test', NULL, NULL);
--force invalidation
insert into conditions
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/continuous_aggs-15.out
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ INNER JOIN _timescaledb_catalog.hypertable h ON(h.id = ca.mat_hypertable_id)
WHERE user_view_name = 'mat_drop_test'
\gset
SET client_min_messages TO NOTICE;
SET timezone TO PST8PDT;
CALL refresh_continuous_aggregate('mat_drop_test', NULL, NULL);
--force invalidation
insert into conditions
Expand Down
1 change: 1 addition & 0 deletions tsl/test/expected/continuous_aggs-16.out
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ INNER JOIN _timescaledb_catalog.hypertable h ON(h.id = ca.mat_hypertable_id)
WHERE user_view_name = 'mat_drop_test'
\gset
SET client_min_messages TO NOTICE;
SET timezone TO PST8PDT;
CALL refresh_continuous_aggregate('mat_drop_test', NULL, NULL);
--force invalidation
insert into conditions
Expand Down
Loading

0 comments on commit ce58ce0

Please sign in to comment.