RE: [GENERAL] [Q] Examples of using OIDs - Mailing list pgsql-general

From Evan Howarth
Subject RE: [GENERAL] [Q] Examples of using OIDs
Date
Msg-id 1155F985F268D211B25700A0C9E1C7610818D4@MAIL
Whole thread Raw
List 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

pgsql-general by date:

Previous
From: Al Dev
Date:
Subject: Move PostgreSQL 6.4.2 RedHat RPM packages to proper locations
Next
From: "Juan Rufino Cuervo Soto"
Date:
Subject: Questions