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
Partitions are listed among other tables, leading to a very noisy list.
The relations can be easily listed, in Postgres, by
SELECT *
FROM pg_partition_tree('action_gateway');
BTW, MySQL also supports partitioning, but I have zero experience here.
CREATE TABLE sales (
id INT,
sale_date DATE,
amount DECIMAL(10,2)
) PARTITION BY RANGE(YEAR(sale_date)) (
PARTITION p2021 VALUES LESS THAN (2022),
PARTITION p2022 VALUES LESS THAN (2023)
);
I'm planning to rewrite the entire Tree, right now that code is messy and not scalable, it only supports 3 levels of depth only. In general, i don't like it, so with that rewrite i think it would be easier to implement partitions.
I looked at how it's implemented in DataGrip (which has super slow starts, that's why I'm considering lazysql), and they do use some kind of recursion. Columns, indexes, sequences, triggers, and partitions are one level below the table. And if you open the partition, it's again the columns, indexes...
Partitions are listed among other tables, leading to a very noisy list.
The relations can be easily listed, in Postgres, by
BTW, MySQL also supports partitioning, but I have zero experience here.
https://dev.mysql.com/doc/refman/8.4/en/partitioning-overview.html
The text was updated successfully, but these errors were encountered: