From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Camila Rocha <camilarrocha@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: oid and oidvector
Date: Mon, 15 Apr 2002 15:13:28 -0400 (EDT)
Message-ID: <200204151913.g3FJDTi10516@candle.pha.pa.us> (raw)
In-Reply-To: <F1508Bi89QtpfTYSl1q00007b2e@hotmail.com>
Camila Rocha wrote:
> Hi!
>
> I'm from Brazil, and sorry about my english...
> I'm having problems with the oid field, the field present in all tables. I
> wanted to use it as a foreing key betwwen too tables, but i couldn't! is it
> possible??
No, you can't use oid as a foreign key. You must use a PRIMARY column.
> what about the data type oidvector?? i didn't find any documentation about
> it, i wanted to use it to keep a lot of oids of other objects... like an
> array of foreign keys, you know?
oidvector is for internal db use. It is an array of 16 oid's.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, camilarrocha@hotmail.com
Subject: Re: oid and oidvector
In-Reply-To: <200204151913.g3FJDTi10516@candle.pha.pa.us>
* 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