mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-16 10:12:58 +00:00
* chore/optimize-catalog: ### Add `table_id` Method to `CatalogManager` - **Files Modified**: - `src/catalog/src/kvbackend/manager.rs` - `src/catalog/src/lib.rs` - **Key Changes**: - Introduced a new asynchronous method `table_id` in the `CatalogManager` trait to retrieve the table ID based on catalog, schema, and table name. - Implemented the `table_id` method in `KvBackendCatalogManager` to fetch the table ID from the system catalog or cache, with a fallback to `pg_catalog` for Postgres channels. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * chore/optimize-catalog: ### Add `table_info_by_id` Method to Catalog Managers - **`manager.rs`**: Introduced the `table_info_by_id` method in `KvBackendCatalogManager` to retrieve table information by table ID using the `TableInfoCacheRef`. - **`lib.rs`**: Updated the `CatalogManager` trait to include the new `table_info_by_id` method. - **`memory/manager.rs`**: Implemented the `table_info_by_id` method in `MemoryCatalogManager` to fetch table information by table ID from in-memory catalogs. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> --------- Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>