| От | Alexey Borzov |
|---|---|
| Тема | Re: Some more questions on DB schema |
| Дата | |
| Msg-id | 408FA5EA.3020901@cs.msu.su обсуждение исходный текст |
| Ответ на | Re: Some more questions on DB schema ("Dave Page" <dpage@vale-housing.co.uk>) |
| Список | pgsql-www |
Hi!
Dave Page wrote:
>>1) What is the table 'dellog' for?
>
> It's a leftover from the old search engine iirc. I assume there's noting
> interesting in it? If not, it can go.
Yep, the table is empty.
>>2) Why 'comments' table does not have a foreign key on 'docs'?
>
> Oversight I guess. Feel free to add one.
There are some problems with this... Run the following query
SELECT id, version, file
FROM comments c
WHERE NOT EXISTS (
SELECT id
FROM docs d
WHERE d.version = c.version AND
d.file = c.file
);
and observe the comments that are linked to non-existant pages of
documentation. Someone'll have to fix these before adding a foreign key
will be possible.
В списке pgsql-www по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера