Received: from omta04.mta.everyone.net (reports.everyone.net [216.200.145.62]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1QF4tx88065 for ; Mon, 26 Feb 2001 10:04:55 -0500 (EST) (envelope-from s@remail.net) Received: from sitemail.everyone.net (reports [216.200.145.62]) by omta04.mta.everyone.net (Postfix) with ESMTP id 4CAF74EFAF for ; Mon, 26 Feb 2001 07:04:51 -0800 (PST) Received: by sitemail.everyone.net (Postfix, from userid 99) id 3ABA636F9; Mon, 26 Feb 2001 07:04:51 -0800 (PST) Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 X-Mailer: MIME-tools 4.104 (Entity 4.117) Date: Mon, 26 Feb 2001 07:04:50 -0800 (PST) From: si To: pgsql-admin@postgresql.org Subject: indexing Reply-To: s@remail.net X-Originating-Ip: [194.82.103.75] Message-Id: <20010226150451.3ABA636F9@sitemail.everyone.net> X-Archive-Number: 200102/211 X-Sequence-Number: 818 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