Re: oid and oidvector

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: oid and oidvector
Дата
Msg-id 200204151913.g3FJDTi10516@candle.pha.pa.us
обсуждение исходный текст
Ответ на oid and oidvector  ("Camila Rocha" <camilarrocha@hotmail.com>)
Ответы Re: oid and oidvector  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-sql по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: data order problem
Следующее
От: Bjarte Aagnes
Дата:
Сообщение: MAX(column1),MAX(column2),...