Inherit or Foreign Keys

Поиск
Список
Период
Сортировка
От Ben-Nes Michael
Тема Inherit or Foreign Keys
Дата
Msg-id 000701c1de4d$d1eb6e80$aa0f5ac2@canaan.co.il
обсуждение исходный текст
Ответы Re: Inherit or Foreign Keys  (Bo Lorentsen <bl@netgroup.dk>)
Список pgsql-general
Hi All

I want to make a site that's contain articles in multi language. ( The same
article can be seen for example in English, French .... )

I thought of two ways.

1. using Foreign keys.
main tables containing the fields which are not seen like id, settings .....
second table with foreign key to the main ID & field saying the language
name and all the others fields are the translations.

2. using inherit
main tables containing the fields which are not seen like id, settings .....
Second table called as the language name that will inherit the main one with
all the translated fields as title, author ....

Which method looks better for the list ?
Speed is important too :)

--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--------------------------



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

Предыдущее
От: Frank Joerdens
Дата:
Сообщение: Re: Who's using PostgreSQL?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: retun cursor