pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: sqllist <pgsql-sql@postgresql.org>
Subject: Re: Antw: many-many mapping between unique tables
Date: Mon, 16 Oct 2000 08:17:40 -0700
Message-ID: <39EB1C14.74DE9333@agliodbs.com> (raw)
References: <Pine.SGI.3.96.1001016144209.121309E-100000@www.cdfd.org.in>

Mr. Majumdar,
> 
> Sorry for splitting mails. Is there some way of using the oid of each
> row to do the mapping instead of creating two more columns of integers?
> The third table can then be like this:
> 
> create table T3(
>         T1      oid,
>         T2      oid
> );

Please reference two things:

1. Look in the list archives for the last 4 weeks and you will read a
long discussion on the risks/limitations of using an OID as the primary
key on very large tables. (Subject: Object-Relational Database Design).

2. For how to use OIDs, please look in Bruce Momjian's excellent PGSQL
book-in-progress, available on the Postgresql.org website. (Chapter 7, I
believe).

					-Josh Berkus

-- 
______AGLIO DATABASE SOLUTIONS___________________________
                                        Josh Berkus
   Complete information technology      josh@agliodbs.com
    and data management solutions       (415) 436-9166
   for law firms, small businesses       fax  436-0137
    and non-profit organizations.       pager 338-4078
                        		San Francisco



view thread (8+ messages)  latest in thread

Message-ID: <39EB1C14.74DE9333@agliodbs.com>
Permalink:  ../39EB1C14.74DE9333@agliodbs.com/
Also on:    postgresql.org/message-id/39EB1C14.74DE9333@agliodbs.com

 · 

reply

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: josh@agliodbs.com
  Subject: Re: many-many mapping between unique tables
  In-Reply-To: <39EB1C14.74DE9333@agliodbs.com>
  References: <Pine.SGI.3.96.1001016144209.121309E-100000@www.cdfd.org.in> <39EB1C14.74DE9333@agliodbs.com>

* 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