Re: default_with_oid - Mailing list pgsql-jdbc

From Bruce Momjian
Subject Re: default_with_oid
Date
Msg-id 200404261544.i3QFiYM02275@candle.pha.pa.us
Whole thread Raw
In response to default_with_oid  ("Freddy Villalba Arias" <fvillalba@madrid.bilbomatica.es>)
List 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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-jdbc by date:

Previous
From: "David Wall"
Date:
Subject: Re: BLOBS
Next
From: Jan de Visser
Date:
Subject: Re: BLOBS