File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/mcp-server-supabase/src/pg-meta Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ import columnsSql from './columns.sql';
3
3
import extensionsSql from './extensions.sql' ;
4
4
import tablesSql from './tables.sql' ;
5
5
6
- export const DEFAULT_SYSTEM_SCHEMAS = [
6
+ export const SYSTEM_SCHEMAS = [
7
7
'information_schema' ,
8
8
'pg_catalog' ,
9
9
'pg_toast' ,
10
+ '_timescaledb_internal' ,
10
11
] ;
11
12
12
13
/**
@@ -23,10 +24,12 @@ export function listTablesSql(schemas: string[] = []) {
23
24
from tables
24
25
` ;
25
26
27
+ sql += '\n' ;
28
+
26
29
if ( schemas . length > 0 ) {
27
- sql += ` where schema in (${ schemas . map ( ( s ) => `'${ s } '` ) . join ( ',' ) } )` ;
30
+ sql += `where schema in (${ schemas . map ( ( s ) => `'${ s } '` ) . join ( ',' ) } )` ;
28
31
} else {
29
- sql += ` where schema not in (${ DEFAULT_SYSTEM_SCHEMAS . map ( ( s ) => `'${ s } '` ) . join ( ',' ) } )` ;
32
+ sql += `where schema not in (${ SYSTEM_SCHEMAS . map ( ( s ) => `'${ s } '` ) . join ( ',' ) } )` ;
30
33
}
31
34
32
35
return sql ;
You can’t perform that action at this time.
0 commit comments