Re: how to speed up query

From: Erwin Brandstetter <brsaweda(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to speed up query
Date: 2007-06-11 21:10:53
Message-ID: 1181596253.236092.286790@h2g2000hsg.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Jun 11, 2:01 pm, "Andrus" <kobrule(dot)(dot)(dot)(at)hot(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erwin Brandstetter 2007-06-11 21:16:47 Re: how to speed up query
Previous Message Jonathan Vanasco 2007-06-11 20:56:17 Re: list all columns in db