Skip to content

Commit

Permalink
Revert "chore: add name column back in pg_user for backward compatibi…
Browse files Browse the repository at this point in the history
…lity (#1…"

This reverts commit dc5dc4f.
  • Loading branch information
yezizp2012 authored Feb 27, 2024
1 parent c06bec5 commit 96d1acb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion e2e_test/batch/catalog/pg_user.slt.part
Original file line number Diff line number Diff line change
@@ -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 ********
2 changes: 0 additions & 2 deletions src/frontend/src/catalog/system_catalog/pg_catalog/pg_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 96d1acb

Please sign in to comment.