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
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter