Skip site navigation (1) Skip section navigation (2)

Re: Antw: many-many mapping between unique tables

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: sqllist <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Antw: many-many mapping between unique tables
Date: 2000-10-16 15:17:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
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 website. (Chapter 7, I

					-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
                                        Josh Berkus
   Complete information technology      josh(at)agliodbs(dot)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

In response to


pgsql-sql by date

Next:From: Indraneel MajumdarDate: 2000-10-16 18:11:56
Subject: many-many mapping between unique tables
Previous:From: KuroiNekoDate: 2000-10-16 15:14:27
Subject: Re: Antw: many-many mapping between unique tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group