Skip to content

Commit 7b71d80

Browse files
authored
fix: show table from user created schemas but omit Supabase managed schemas (#442)
1 parent 646f84a commit 7b71d80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

etl-api/src/db/tables.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ pub async fn get_tables(pool: &PgPool) -> Result<Vec<Table>, TablesDbError> {
2525
left join pg_catalog.pg_am am on am.oid = c.relam
2626
where
2727
c.relkind = 'r'
28-
and n.nspname <> 'pg_catalog'
28+
and n.nspname not in ('pg_catalog', 'information_schema', 'auth', 'etl', 'extensions', 'graphql', 'pgtle', 'pgsodium', 'relatime', 'storage', 'vault')
2929
and n.nspname !~ '^pg_toast'
30-
and n.nspname <> 'information_schema'
31-
and pg_catalog.pg_table_is_visible(c.oid)
3230
order by schema, name;
3331
"#;
3432

0 commit comments

Comments
 (0)