From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Roman Fail <rfail@posportal.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: 7.3.1 New install, large queries are slow
Date: Thu, 16 Jan 2003 23:00:48 -0800 (PST)
Message-ID: <20030116225602.G17408-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <9B1C77393DED0D4B9DAA1AA1742942DA0E4C09@pos_pdc.posportal.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, rfail@posportal.com
Subject: Re: 7.3.1 New install, large queries are slow
In-Reply-To: <20030116225602.G17408-100000@megazone23.bigpanda.com>
References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4C09@pos_pdc.posportal.com> <20030116225602.G17408-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox