best way to reference tables

From: TJ O'Donnell <tjo(at)acm(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: best way to reference tables
Date: 2005-08-09 14:31:35
Message-ID: 42F8BE47.8080200@acm.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have many different tables that I want to keep track of.
So, I thought of a master table with those table names in it.
But, to maintain this (suppose a table changes
its name, gets dropped) I want to have some kind of referential
integrity - the way foreign keys and constraints do.
What could I use that would disallow inserting a name into
the master table unless another table by that name already exists?
And what could ensure that a table would not be renamed or dropped
unless the master table is changed?

TJ

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-08-09 14:35:21 Re: Query stucked in pg_stat_activity
Previous Message Lowell.Hought 2005-08-09 14:30:08 Database syncronization