| От | Constantin Teodorescu |
|---|---|
| Тема | A question of object inheritance behaviour |
| Дата | |
| Msg-id | 364DC090.298E9BB9@flex.ro обсуждение исходный текст |
| Список | pgsql-hackers |
I have created a table , let's say "people" that has a column called "id". I declared this column as "serial", that means unique, sequential assigned values. I have created another table, "students", that inherits the columns from "people" and has other fields, let's say "university". The "students" table inherits the sequential attribute of it's parent table, "people", but lacks the attribute of unique field. I realise that a unique key index is builded and maintained at table instance level, but this case seems to me that it's a "half-inheritance behaviour". How do you feel about it ? From my point of view, a "unique" attribute of a field declared at parent level should be inherited through all instances of that table. Constantin Teodorescu FLEX Consulting Braila, ROMANIA
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера