About 50 results
Open links in new tab
  1. postgresql - How to add an index with WHERE-clause in Postgres

    Mar 1, 2016 · I would like to add an index with a WHERE clause in Postgres. I used the following query to do that: create index concurrently em_openorder_idx on line (m_product_id, org_id, …

  2. Postgres and indexes on foreign keys and primary keys

    PostgreSQL automatically creates indexes on primary keys and unique constraints, but not on the referencing side of foreign key relationships. When Pg creates an implicit index it will emit a …

  3. postgresql - How to list indexes created for table in postgres

    Jul 2, 2021 · Could you tell me how to check what indexes are created for some table in postgresql ?

  4. postgresql - How to create index on table which is partitioned?

    Apr 10, 2019 · How to create an index on a partitioned table in PostgreSQL 11.2? My table is: CREATE TABLE sometablename ( column1 character varying(255) COLLATE …

  5. sql - PostgreSQL Index Usage Analysis - Stack Overflow

    Jul 23, 2010 · There are multiple links to scripts that will help you find unused indexes at the PostgreSQL wiki. The basic technique is to look at pg_stat_user_indexes and look for ones …

  6. postgresql - Index cleanup vaccum - Stack Overflow

    May 1, 2024 · Seems its asking again,but with some tets have done but unable to get on below things- VACUUM INDEX_CLEANUP { AUTO | ON | OFF } Where this parameter should be …

  7. How to create index on JSON field in Postgres? - Stack Overflow

    In PostgreSQL 9.3 Beta 2 (?), how do I create an index on a JSON field? I tried it using the -> operator used for hstore but got the following error: CREATE TABLE publishers(id INT, info …

  8. How to SELECT data from a postgreSQL INDEX? - Stack Overflow

    May 6, 2017 · Data in the index is internal to PostgreSQL, and it's not accessible to the outside world. You can introspect your index definitions (using pg_indexes table or pg_get_indexdef …

  9. Can PostgreSQL index array columns? - Stack Overflow

    Oct 30, 2010 · As for the UNIQUE constraint in your question that went unanswered: That's implemented with a btree index on the whole array value (like you suspected) and does not …

  10. postgresql - Index row size 2712 exceeds btree version 4 …

    Nov 26, 2021 · I am trying to restore a database backup of a Postgresql version 9.2 onto Postgresql 13.5, but while restoring I am getting this message: index row size 2712 exceeds …