Using meta-data for foreign key?

Поиск
Список
Период
Сортировка
От Mike Blackwell
Тема Using meta-data for foreign key?
Дата
Msg-id 48076B5E.4050707@sbcglobal.net
обсуждение исходный текст
Ответы Re: Using meta-data for foreign key?
Список pgsql-general
I have an existing table in an app, along the lines of:

CREATE TABLE foo (
  name text,
  address text,
  some_numeric_info integer,
  <a bunch of additional fields here>
);

I now need to be able to associate additional information (e.g. printing
order) with each field.  Is it a bad idea to use the (fully qualified)
field name as a foreign key to link back to the table meta-data?  Is
there a better way?


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

Предыдущее
От: "David Gagnon"
Дата:
Сообщение: Re: Unable to add a new column to a table named "in" (look like a bug ...)
Следующее
От: "Jesus Becerra"
Дата:
Сообщение: Re: Problems running PostGreSQL silent install