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

references et index



Bonjour,

Une question que je me repose à chaque fois que je recré des tables...

Faut-il créer un index sur un champ references ?

Par exemple

create table entete(
    id_entete serial primary key
    ...
    )
create table ligne(
    ref_entete integer references entete
    ...
    )

faut-il créer un index sur ligne(ref_entete) si on veut faire un select
* from ligne where ref_entete=... ?

-- 
William Dodé - http://flibuste.net




Home | Main Index | Thread Index

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