You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tsl/test/expected/chunk_utils_internal.out
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1567,6 +1567,56 @@ INSERT INTO osm_slice_update VALUES (1);
1567
1567
psql:include/chunk_utils_internal_orderedappend.sql:178: ERROR: Cannot insert into tiered chunk range of public.osm_slice_update - attempt to create new chunk with range [0 10] failed
1568
1568
INSERT INTO osm_slice_update VALUES (1);
1569
1569
psql:include/chunk_utils_internal_orderedappend.sql:179: ERROR: Cannot insert into tiered chunk range of public.osm_slice_update - attempt to create new chunk with range [0 10] failed
1570
+
\set ON_ERROR_STOP 1
1571
+
--TEST hypertable with foreign key into it
1572
+
\c :TEST_DBNAME :ROLE_4
1573
+
CREATE TABLE hyper_fk(ts timestamptz primary key, device text, value float);
1574
+
SELECT table_name FROM create_hypertable('hyper_fk', 'ts');
1575
+
table_name
1576
+
------------
1577
+
hyper_fk
1578
+
(1 row)
1579
+
1580
+
INSERT INTO hyper_fk(ts, device, value) VALUES ('2020-01-01 00:00:00+00', 'd1', 1.0);
1581
+
\c postgres_fdw_db :ROLE_4
1582
+
CREATE TABLE fdw_hyper_fk(ts timestamptz NOT NULL, device text, value float);
1583
+
INSERT INTO fdw_hyper_fk VALUES( '2021-05-05 00:00:00+00', 'd2', 2.0);
1584
+
\c :TEST_DBNAME :ROLE_4
1585
+
-- this is a stand-in for the OSM table
1586
+
CREATE FOREIGN TABLE child_hyper_fk
1587
+
(ts timestamptz NOT NULL, device text, value float)
1588
+
SERVER s3_server OPTIONS ( schema_name 'public', table_name 'fdw_hyper_fk');
0 commit comments