| От | Alvaro Herrera |
|---|---|
| Тема | Re: Foreign key constraint question |
| Дата | |
| Msg-id | 20070722033209.GD2902@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Re: Foreign key constraint question (Nis Jørgensen <nis@superlativ.dk>) |
| Ответы |
Re: Foreign key constraint question
|
| Список | pgsql-general |
Nis Jørgensen wrote: > What if, for instance, I want to render a list of shapes? > > To render the shape, I need to get its data, to get its data, I need to > know what type it is. ISTM that the easiest way to achieve this is > storing the type info at the "top" of the table hierarchy. Try adding "tableoid" to the list of columns retrieved. Even better, cast that to regclass. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера