Re: Fw: OID

From: "Daniel L Banta" <dan(at)netcandor(dot)net>
To: "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Fw: OID
Date: 2002-08-18 17:24:15
Message-ID: 027101c246dc$136dfd40$f60010ac@netcandor.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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" <mail(at)joeconway(dot)com>
To: "Jodi Kanter" <jkanter(at)virginia(dot)edu>
Cc: "Postgres Admin List" <pgsql-admin(at)postgresql(dot)org>
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?
>
> <snip>
>
> >
> > 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(at)postgresql(dot)org
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jules Alberts 2002-08-19 07:10:08 Re: Fw: OID
Previous Message Curt Sampson 2002-08-17 06:32:33 Re: ProstGreSQL on RAID Question