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
Re: best way to reference tables
Список 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 по дате отправления: