Overidding default values of inherited tables

Поиск
Список
Период
Сортировка
От Nico D
Тема Overidding default values of inherited tables
Дата
Msg-id 0729.001013@mclink.it
обсуждение исходный текст
Список pgsql-general
Please let me know how to overide the DEFAULT value in
inherited tables?
(using PG 7.0.2)

create table objects (
       id serial,
       type name DEFAULT 'object'
       );

create table books (
       title name,
--     type name DEFAULT 'book'  <--- how to do?
       ) inherits(objects);

create table hats (
       color name,
--     type name DEFAULT 'hat'  <--- how to do?
       ) inherits(objects);


PG tells me I cannot redefine the attribute "type",
right, but how about redefining the default value...



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

Предыдущее
От: Nico D
Дата:
Сообщение: Referential integrity and inheritance.
Следующее
От: "Sergio A. Kessler"
Дата:
Сообщение: using cr/lf files in copy from