Re: [SQL] System Attribute

From: Mathijs Brands <mathijs(at)ilse(dot)nl>
To: Drew Whittle <drew(at)albatross(dot)co(dot)nz>
Cc: pgsql-sql(at)hub(dot)org
Subject: Re: [SQL] System Attribute
Date: 1999-12-14 00:33:51
Message-ID: 19991214013351.A11540@ilse.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message neko 1999-12-14 01:13:12 Re: [SQL] How do I get column names?
Previous Message Drew Whittle 1999-12-14 00:14:14 System Attribute