Sha256: cdd48cd93d0163d82f169e35220cd92d63310960dde2206faf48840cef01e370

Contents?: true

Size: 254 Bytes

Versions: 50

Compression:

Stored size: 254 Bytes

Contents

/* List all the indexes with their corresponding tables and columns. */

SELECT
  schemaname,
  indexname,
  tablename,
  rtrim(split_part(indexdef, '(', 2), ')') as columns
FROM pg_indexes
where tablename in (select relname from pg_statio_user_tables);

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
ruby-pg-extras-5.5.1 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.5.0 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.4.5 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.4.4 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.4.3 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.4.2 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.4.1 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.4.0 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.3.1 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.3.0 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.2.5 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.2.4 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.2.3 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.2.2 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.2.1 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.2.0 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.1.0 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-5.0.0 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-4.13.0 lib/ruby_pg_extras/queries/indexes.sql
ruby-pg-extras-4.12.2 lib/ruby_pg_extras/queries/indexes.sql