Re: [SQL] System Attribute - Mailing list pgsql-sql

From Mathijs Brands
Subject Re: [SQL] System Attribute
Date
Msg-id 19991214013351.A11540@ilse.nl
Whole thread Raw
In response to System Attribute  (Drew Whittle <drew@albatross.co.nz>)
List pgsql-sql
On Tue, Dec 14, 1999 at 01:14:14PM +1300, Drew Whittle allegedly wrote:
> We have an online order system that I am trying to convert to use postgres 
> and I noticed a problem with the creation of the DB.
> 
> One of the tables has a field called 'oid', which is fine under lots of 
> other DB's but postgres doesn't like it. I am in the process of renaming 
> this field so things will work but I am curious what the error actually means:
> 
> ERROR:  create: system attribute named "oid"
> 
> Thanks,
> 
> Drew

Every record in a table has a unique OID value. So if you were to insert the
same value twice, you would be able to keep them apart using the OID value.
Since PostgreSQL uses the oid field internally, you cannot use it.

I hope this helps.

Mathijs


pgsql-sql by date:

Previous
From: Drew Whittle
Date:
Subject: System Attribute
Next
From: neko@kredit.sth.szif.hu
Date:
Subject: Re: [SQL] How do I get column names?