mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 11:03:36 +08:00
It depends on the context, not only on the relation id. The same chunk can be expanded both as a child of hypertable and as an independent table.
10 lines
431 B
SQL
10 lines
431 B
SQL
-- 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.
|
|
|
|
-- Test the case where the chunk is present both as a separate table and as a
|
|
-- child of a hypertable. #4708
|
|
|
|
select show_chunks('metrics_compressed') chunk order by 1 limit 1 \gset
|
|
select * from metrics_compressed inner join :chunk on (false);
|