pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nosyman <nosyman@easymail.ro>
To: pgsql-sql@postgresql.org
Subject: PRIMARY KEY and INDEX
Date: Thu, 2 Sep 2004 16:58:16 -0000
Message-ID: <200409021358.i82DwGQ8022806@acten.itcnet.ro> (raw)

It is necessary to define an index for a primary key column?

Let's have an example
CREATE TABLE users(
id_user INTEGER PRIMARY KEY,
user_name VARCHAR(25)
);

Does PgSQL automatically create an index for id_user (primary key) or it
must be created by hand?

Thanks


_________________________________________________________________
Message
sent using ITCNet free webmailer (http://www.easymail.ro)



view thread (3+ messages)

Message-ID: <200409021358.i82DwGQ8022806@acten.itcnet.ro>
Permalink:  ../200409021358.i82DwGQ8022806@acten.itcnet.ro/
Also on:    postgresql.org/message-id/200409021358.i82DwGQ8022806@acten.itcnet.ro

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: nosyman@easymail.ro
  Subject: Re: PRIMARY KEY and INDEX
  In-Reply-To: <200409021358.i82DwGQ8022806@acten.itcnet.ro>

* 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