From: JanWieck@t-online.de
To: wagner@imsd.uni-mainz.de
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: using OID as primary key
Date: Fri, 21 Jul 2000 13:57:17 +0200 (MEST)
Message-ID: <200007211157.NAA04499@hot.jw.home> (raw)
In-Reply-To: <3978385E.2182D8B4@imsd.uni-mainz.de>
Markus Wagner wrote:
> 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?
Currently OID is not supported for references. Has to do with
some checks done in the RI triggers, using SPI functions.
We're thinking about a solution...
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
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: JanWieck@t-online.de, wagner@imsd.uni-mainz.de
Subject: Re: using OID as primary key
In-Reply-To: <200007211157.NAA04499@hot.jw.home>
References: <3978385E.2182D8B4@imsd.uni-mainz.de> <200007211157.NAA04499@hot.jw.home>
* 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