From: Markus Wagner <wagner@imsd.uni-mainz.de>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: using OID as primary key
Date: Fri, 21 Jul 2000 13:47:43 +0200
Message-ID: <3978385E.2182D8B4@imsd.uni-mainz.de> (raw)
Hi,
are there any disadvantages of using OID as the primary key for any
table?
What about referencing external tuples using their OIDs?
e. g.:
CREATE TABLE thistable
...
field NUMERIC REFERENCES OtherTable (oid)
Which data type should I use to reference OIDs?
Will I run into problems later if I do my things this way?
Thanks,
Markus
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: wagner@imsd.uni-mainz.de
Subject: Re: using OID as primary key
In-Reply-To: <3978385E.2182D8B4@imsd.uni-mainz.de>
References: <3978385E.2182D8B4@imsd.uni-mainz.de>
* 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