Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): query performance empty columns (#38437)

kemal.earth541c9f90ccfe
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
index d6f5d5a0b9d..87bf77ba788 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
@@ -90,6 +90,22 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
)
}
+ if (col.id === 'rolname') {
+ return (
+ <div className="w-full flex flex-col justify-center font-mono text-xs">
+ <p>{value || 'n/a'}</p>
+ </div>
+ )
+ }
+
+ if (col.id === 'prop_total_time') {
+ return (
+ <div className="w-full flex flex-col justify-center font-mono text-xs text-right">
+ <p>{value || 'n/a'}</p>
+ </div>
+ )
+ }
+
const isTime = col.name.includes('time')
const formattedValue =
!!value && typeof value === 'number' && !isNaN(value) && isFinite(value)