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