Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Test performance


  • From: "Damien Griessinger" <dgriessinger(at)free(dot)fr>
  • To: <pgsql-fr-generale(at)postgresql(dot)org>
  • Subject: Re: Test performance
  • Date: Tue, 6 Dec 2005 18:04:42 +0100
  • Message-id: <E1EjgE1-00020v-Ot(at)corwin(dot)easynet(dot)fr>

>Par contre je me pose une question toute simple ... une clé primaire dans
>un table est forcément indexée ? ou faut-il créer  un index sur la clé ?

Les clefs primaires et étrangères engendrent automatiquement la création
d'un index :

PostgreSQL automatically creates an index for each unique constraint and
primary key constraint to enforce uniqueness. Thus, it is not necessary to
create an index explicitly for primary key columns.
http://www.postgresql.org/docs/8.1/static/sql-createtable.html#SQL-CREATETAB
LE-NOTES





Damien Griessinger







Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group