INDEX size as bytes - PostgreSQL 9.2
Just remove pg_size_pretty from the query:

SELECT 
    relid::regclass AS table, 
    indexrelid::regclass AS index,
    pg_relation_size(indexrelid::regclass) AS index_size,