Merge pull request #16762 from supabase/fix/indexes-query

Fix indexes query
This commit is contained in:
Joshen Lim authored and GitHub committed 2023-08-24 12:52:39 +08:00
commit d2d47efef2
1 file changed
+2 -4
+2 -4
View File
@@ -17,10 +17,8 @@ export const getIndexesQuery = ({ schema }: { schema: string }) => {
SELECT schemaname as "schema",
tablename as "table",
indexname as "name",
indexdef as "definition",
indisvalid as "enabled"
FROM pg_indexes a
LEFT JOIN pg_index b ON b.indexrelid = a.indexname::regclass
indexdef as "definition"
FROM pg_indexes
WHERE schemaname = '${schema}';
`.trim()