Show all indexes in db

PHOTO EMBED

Tue Jul 25 2023 07:23:58 GMT+0000 (Coordinated Universal Time)

Saved by @radeon323 #sql #postgres

SELECT 
  indexname AS index_name,
  tablename AS table_name,
  indexdef AS index_definition
FROM 
  pg_indexes
WHERE 
  schemaname = 'public'; -- Replace 'public' with the desired schema name if the index is in a different schema
content_copyCOPY