RE: [GENERAL] [Q] Examples of using OIDs

From: Evan Howarth <EHowarth(at)Intellicall(dot)com>
To: "'Sergey Kryazhevskih'" <serg(at)ors(dot)kirov(dot)ru>, pgsql general mailing list <pgsql-general(at)postgreSQL(dot)org>
Subject: RE: [GENERAL] [Q] Examples of using OIDs
Date: 1999-01-22 15:55:33
Message-ID: 1155F985F268D211B25700A0C9E1C7610818D4@MAIL
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

This will return all columns including the OID:
select oid,* from my_table

To index the OID column:
create index my_table_oid on my_table( oid )

Other tables can reference the OID column:
create table another_table (
...
my_table_ref oid not null,
..
)

Because PostreSQL ignores the "foreign key" keywords,
you have to maintain referential integrity yourself.

Evan Howarth

Browse pgsql-general by date

  From Date Subject
Next Message Dustin Sallings 1999-01-22 18:36:43 Re: [GENERAL] DISPLAYING BLOBS/images/text
Previous Message Al Dev 1999-01-22 15:45:28 Move PostgreSQL 6.4.2 RedHat RPM packages to proper locations