mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 18:13:18 +08:00
Add logic to ignore dropped chunks in hypertable_relation_size
Function hypertable_relation_size includes chunks that were dropped which causes a failure when looking up the size of dropped chunks. This patch adds a constraint to ignore dropped chunks when determining the size of the hypertable.
This commit is contained in:
parent
474db5e448
commit
656bd3f6cc
@ -55,6 +55,7 @@ BEGIN
|
||||
pg_class pgc,
|
||||
pg_namespace pns
|
||||
WHERE h.schema_name = %L
|
||||
AND c.dropped = false
|
||||
AND h.table_name = %L
|
||||
AND c.hypertable_id = h.id
|
||||
AND pgc.relname = h.table_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user