Re: how to speed up query - Mailing list pgsql-general

From Erwin Brandstetter
Subject Re: how to speed up query
Date
Msg-id 1181596253.236092.286790@h2g2000hsg.googlegroups.com
Whole thread Raw
In response to how to speed up query  ("Andrus" <kobruleht2@hot.ee>)
Responses Re: how to speed up query
List pgsql-general
On Jun 11, 2:01 pm, "Andrus" <kobrule...@hot.ee> wrote:
(...)
> > This index makes no sense at all:
> > CREATE INDEX dok_dokumnr_idx  ON firma1.dok  USING btree (dokumnr);
>
> I listed table structure and constraints partially.
> Theis is also primary key constraint in dok table:
>
>  CONSTRAINT dok_pkey PRIMARY KEY (dokumnr),


On a sidenote: this primary implements a unique index anyway. The
additional index is useless. You can delete it to save time and
storage.
(Or maybe this is just another discrepancy between reality and problem
description.)


Regards
Erwin


pgsql-general by date:

Previous
From: Jonathan Vanasco
Date:
Subject: Re: list all columns in db
Next
From: Erwin Brandstetter
Date:
Subject: Re: how to speed up query