Re: Does PostgreSQL ever create indexes on its own?

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: "Doiron, Daniel" <DoironD(at)advisory(dot)com>
Cc: "pgsql-general(at)postgresql(dot) List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Does PostgreSQL ever create indexes on its own?
Date: 2015-11-12 22:25:09
Message-ID: CAECtzeUKdYt7mvZNtnEdFEPPKAOb7kDmFnbcb0bXFtpF3u+_5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2015-11-12 23:21 GMT+01:00 Doiron, Daniel <DoironD(at)advisory(dot)com>:

> I’m troubleshooting a schema and found this:
>
> Indexes:
> "pk_patient_diagnoses" PRIMARY KEY, btree (id)
> "index_4341548" UNIQUE, btree (id)
> "idx_patient_diagnoses_deleted" btree (deleted)
> "idx_patient_diagnoses_diagnosis_type_id" btree (diagnosis_type_id)
> "idx_patient_diagnoses_icd10" btree (icd10)
> "idx_patient_diagnoses_icd9" btree (diagnosis_code)
> "idx_patient_diagnoses_is_unknown" btree (is_unknown)
> "idx_patient_diagnoses_modified" btree (modified)
> "idx_patient_diagnoses_patient_id" btree (patient_id)
> "idx_patient_diagnoses_uuid" btree (uuid)
> "index_325532921" btree (modified)
> "index_4345603" btree (deleted)
> "index_4349516" btree (diagnosis_type_id)
> "index_4353417" btree (icd10)
> "index_4384754" btree (diagnosis_code)
> "index_4418849" btree (is_unknown)
> "index_4424101" btree (patient_id)
> "index_4428458" btree (uuid)
>
> My questions is whether these “index_*” indexes could have been created by
> postgresql or whether I have an errant developer using some kinda
> third-party tool?
>

PostgreSQL doesn't create indexes on its own, except for primary keys,
unique constraints, and exclusion constraints.

So, that must be something (or someone) else.

--
Guillaume.
http://blog.guillaume.lelarge.info
http://www.dalibo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2015-11-12 22:25:23 Re: Does PostgreSQL ever create indexes on its own?
Previous Message Doiron, Daniel 2015-11-12 22:21:10 Does PostgreSQL ever create indexes on its own?