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.