From: Mathijs Brands <mathijs@ilse.nl>
To: Drew Whittle <drew@albatross.co.nz>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] System Attribute
Date: Tue, 14 Dec 1999 01:33:51 +0100
Message-ID: <19991214013351.A11540@ilse.nl> (raw)
In-Reply-To: <4.2.0.58.19991214131113.00c5dad0@pern.csarc.otago.ac.nz>
References: <Your <3855574F.3314738E@sabre.com>
<12856.945125447@sss.pgh.pa.us>
<4.2.0.58.19991214131113.00c5dad0@pern.csarc.otago.ac.nz>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: mathijs@ilse.nl, drew@albatross.co.nz, pgsql-sql@hub.org
Subject: Re: [SQL] System Attribute
In-Reply-To: <19991214013351.A11540@ilse.nl>
References: <12856.945125447@sss.pgh.pa.us> <4.2.0.58.19991214131113.00c5dad0@pern.csarc.otago.ac.nz> <19991214013351.A11540@ilse.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox