Re: default_with_oid

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Freddy Villalba Arias <fvillalba(at)madrid(dot)bilbomatica(dot)es>
Cc: PostgreSQL JDBC Mailing List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: default_with_oid
Date: 2004-04-26 15:44:34
Message-ID: 200404261544.i3QFiYM02275@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Freddy Villalba Arias wrote:
> Hello,
>
>
>
> I've noticed that whenever I create a table, the DBMS is adding an OID
> column without my consent. I've also read that this behaviour can be
> modified (disabled) by setting the default_with_oid (to false, I
> suppose).

That option is only available in 7.5. In earlier releases, you have to
create WITH OIDS or alter the table to now have oids.

> What is the OID column for? How (and where) can I find (and disable) the
> default_with_oid flag?

There is a flag only in 7.5, which will not be released for several
months.

The column gives a unique value to each row. Try SELECT oid FROM tab.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message David Wall 2004-04-26 15:54:29 Re: BLOBS
Previous Message Dave Cramer 2004-04-26 15:40:56 Re: default_with_oid