From 47445a1638b1cff351b8e7b11a57eeda3c09643b Mon Sep 17 00:00:00 2001 From: Kexiang Wang Date: Fri, 24 May 2024 11:07:40 +0800 Subject: [PATCH] chore(catalog): avoid rw_catalog in pg_tables (#16915) --- .../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 {