From 96d1acb4f03766cf505e8b51ec6f77b109faea80 Mon Sep 17 00:00:00 2001 From: August Date: Tue, 27 Feb 2024 15:07:42 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"chore:=20add=20name=20column=20back?= =?UTF-8?q?=20in=20pg=5Fuser=20for=20backward=20compatibility=20(#1?= =?UTF-8?q?=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit dc5dc4f8353647d1bedd3d58238cd0c15e5067d0. --- e2e_test/batch/catalog/pg_user.slt.part | 2 +- src/frontend/src/catalog/system_catalog/pg_catalog/pg_user.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/e2e_test/batch/catalog/pg_user.slt.part b/e2e_test/batch/catalog/pg_user.slt.part index d189703c03138..a57dde1a4eb71 100644 --- a/e2e_test/batch/catalog/pg_user.slt.part +++ b/e2e_test/batch/catalog/pg_user.slt.part @@ -1,5 +1,5 @@ query ITTT -SELECT usesysid, usename, usecreatedb, usesuper, passwd FROM pg_catalog.pg_user order by usesysid; +SELECT * FROM pg_catalog.pg_user order by usesysid; ---- 1 root t t ******** 2 postgres t t ******** diff --git a/src/frontend/src/catalog/system_catalog/pg_catalog/pg_user.rs b/src/frontend/src/catalog/system_catalog/pg_catalog/pg_user.rs index 83687c68a92da..c47d849458527 100644 --- a/src/frontend/src/catalog/system_catalog/pg_catalog/pg_user.rs +++ b/src/frontend/src/catalog/system_catalog/pg_catalog/pg_user.rs @@ -22,7 +22,6 @@ use risingwave_frontend_macro::system_catalog; "pg_catalog.pg_user", "SELECT id AS usesysid, name, - name AS usename, create_db AS usecreatedb, is_super AS usesuper, '********' AS passwd @@ -31,7 +30,6 @@ use risingwave_frontend_macro::system_catalog; #[derive(Fields)] struct PgUser { usesysid: i32, - name: String, // FIXME: For backward compatibility, remove it when the cloud update it. usename: String, usecreatedb: bool, usesuper: bool,