pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: si <s@remail.net>
To: pgsql-admin@postgresql.org
Subject: indexing
Date: Mon, 26 Feb 2001 07:04:50 -0800 (PST)
Message-ID: <20010226150451.3ABA636F9@sitemail.everyone.net> (raw)

Hi,

I am new to postgresql, Please can you guide me:

I have created a table and I would like all the entries to be indexed with a number when the data is entered into the database, hence giving it a new id, every time some data is entered.

e.g.

I.D.    |   Name
1       |   Jack
2       |   Jill


Does pgsql do this automatically? or do I have to create a seprate ID field like above, and check the database each time the data is entered and find out the highest number then increment it by 1 and then enter the data with the incremented number.

If it automatically indexes the names when they are entered in to the database, Please can you show me how to find this index.

Thanks,
Si

_____________________________________________________________
Pick up your email anywhere in the world ---> http://www.remail.net



view thread (4+ messages)  latest in thread

Message-ID: <20010226150451.3ABA636F9@sitemail.everyone.net>
Permalink:  ../20010226150451.3ABA636F9@sitemail.everyone.net/
Also on:    postgresql.org/message-id/20010226150451.3ABA636F9@sitemail.everyone.net

 · 

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 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-admin@postgresql.org
  Cc: s@remail.net
  Subject: Re: indexing
  In-Reply-To: <20010226150451.3ABA636F9@sitemail.everyone.net>
  References: <20010226150451.3ABA636F9@sitemail.everyone.net>

* 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