Re: 7.3.1 New install, large queries are slow - Mailing list pgsql-performance

From Stephan Szabo
Subject Re: 7.3.1 New install, large queries are slow
Date
Msg-id 20030116225602.G17408-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: 7.3.1 New install, large queries are slow  ("Roman Fail" <rfail@posportal.com>)
List pgsql-performance
On Thu, 16 Jan 2003, Roman Fail wrote:

> > Stephan Szabo wrote:
> > Also you have two indexes on batchdetailid right now (primary key
> > also creates one) which added to the confusion.
>
> The 7.3.1 docs for CREATE TABLE don't mention anything about automatic
> index creation for a PRIMARY KEY.  I didn't see any PK indexes via
> pgAdminII, so I read this line from the docs and decided to create
> them separately.
>     "Technically, PRIMARY KEY is merely a combination of UNIQUE and NOT NULL"

Right, but the implementation of UNIQUE constraints in postgresql right
now is through a unique index.  That's not necessarily a guarantee for
the future, but for right now you can rely on it.


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.3.1 New install, large queries are slow
Next
From: Timur Irmatov
Date:
Subject: index usage