Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E03DB476088 for ; Sun, 18 Aug 2002 13:30:46 -0400 (EDT) Received: from optimus.papazan.net (dsl092-116-052.nyc2.dsl.speakeasy.net [66.92.116.52]) by postgresql.org (Postfix) with SMTP id 0024C4760DC for ; Sun, 18 Aug 2002 13:30:46 -0400 (EDT) Received: (qmail 23179 invoked from network); 18 Aug 2002 17:13:16 -0000 Received: from dsl092-116-061.nyc2.dsl.speakeasy.net (HELO APELINQ) (66.92.116.61) by optimus.papazan.net with SMTP; 18 Aug 2002 17:13:16 -0000 Message-ID: <027101c246dc$136dfd40$f60010ac@netcandor.net> From: "Daniel L Banta" To: "pgsql-admin" References: <01e701c24563$00413ef0$de138f80@virginia.edu> <3D5D6354.4060507@joeconway.com> Subject: Re: Fw: OID Date: Sun, 18 Aug 2002 13:24:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/206 X-Sequence-Number: 5321 Jodi, > How to remove them in version 7.2? Create the table using WITHOUT OIDS. Example. CREATE TABLE users ( user_id serial NOT NULL, user_name varchar(20) NOT NULL, passwd varchar(32) NOT NULL, CONSTRAINT pk_user_id PRIMARY KEY(user_id) ) WITHOUT OIDS; Take Care. Dan ----- Original Message ----- From: "Joe Conway" To: "Jodi Kanter" Cc: "Postgres Admin List" Sent: Friday, August 16, 2002 16.40 Subject: Re: [ADMIN] Fw: OID > Jodi Kanter wrote: > > Does anyone have a comment on the email below? Is there a general > > consensus on whether or not to use OIDs with version 7.2? > > > > > > > Can anyone point me to some documentation on the use of OIDs? Why might > > I need them? How to remove them in version 7.2? ..etc... > > I think you're best to avoid using them. They are primarily for internal > system use. If you need an incrementing integer field, create your own > with SERIAL, or integer field and a sequence. > > To create a table without oids, see: > http://www.postgresql.org/idocs/index.php?sql-createtable.html > > Joe > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >