best way to reference tables

Поиск
Список
Период
Сортировка
От TJ O'Donnell
Тема best way to reference tables
Дата
Msg-id 42F8BE47.8080200@acm.org
обсуждение исходный текст
Ответы Re: best way to reference tables  (Sean Davis <sdavis2@mail.nih.gov>)
Re: best way to reference tables  (Richard Huxton <dev@archonet.com>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Query stucked in pg_stat_activity
Следующее
От: Sean Davis
Дата:
Сообщение: Re: Cross database queries