pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel L Banta <dan@netcandor.net>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Fw: OID
Date: Sun, 18 Aug 2002 13:24:15 -0400
Message-ID: <027101c246dc$136dfd40$f60010ac@netcandor.net> (raw)
References: <01e701c24563$00413ef0$de138f80@virginia.edu>
	<3D5D6354.4060507@joeconway.com>

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@joeconway.com>
To: "Jodi Kanter" <jkanter@virginia.edu>
Cc: "Postgres Admin List" <pgsql-admin@postgresql.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@postgresql.org
>




view thread (10+ messages)  latest in thread

Message-ID: <027101c246dc$136dfd40$f60010ac@netcandor.net>
Permalink:  ../027101c246dc$136dfd40$f60010ac@netcandor.net/
Also on:    postgresql.org/message-id/027101c246dc$136dfd40$f60010ac@netcandor.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: dan@netcandor.net
  Subject: Re: Fw: OID
  In-Reply-To: <027101c246dc$136dfd40$f60010ac@netcandor.net>
  References: <01e701c24563$00413ef0$de138f80@virginia.edu> <3D5D6354.4060507@joeconway.com> <027101c246dc$136dfd40$f60010ac@netcandor.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