Re: oid and oidvector

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Camila Rocha <camilarrocha(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: oid and oidvector
Date: 2002-04-15 19:13:28
Message-ID: 200204151913.g3FJDTi10516@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2002-04-15 19:34:14 Re: MAX(column1),MAX(column2),...
Previous Message Bjarte Aagnes 2002-04-15 18:38:12 MAX(column1),MAX(column2),...