From 804c663bd35d78163e8cadd73fbb78b0edc068c1 Mon Sep 17 00:00:00 2001 From: Kexiang Wang Date: Thu, 23 May 2024 21:58:18 -0400 Subject: [PATCH] chore(catalog): avoid rw_catalog in pg_tables --- .../src/catalog/system_catalog/pg_catalog/pg_tables.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/catalog/system_catalog/pg_catalog/pg_tables.rs b/src/frontend/src/catalog/system_catalog/pg_catalog/pg_tables.rs index 07b3a15e09b1b..27b4c214f0265 100644 --- a/src/frontend/src/catalog/system_catalog/pg_catalog/pg_tables.rs +++ b/src/frontend/src/catalog/system_catalog/pg_catalog/pg_tables.rs @@ -34,7 +34,8 @@ use risingwave_frontend_macro::system_catalog; schema_id, owner FROM rw_catalog.rw_system_tables) AS t - JOIN rw_catalog.rw_schemas s ON t.schema_id = s.id" + JOIN rw_catalog.rw_schemas s ON t.schema_id = s.id + AND s.name <> 'rw_catalog'" )] #[derive(Fields)] struct PgTable {