Using "object orientated" tables?

Поиск
Список
Период
Сортировка
От Simon Connah
Тема Using "object orientated" tables?
Дата
Msg-id FD4Iyd89i-sbetQTcbUPO1SqWrYMGhzyso4ltpYmvWiI5LtHUxnPZNCyoJOhMOr3aQqvSKR9pISe55L3HStXrim-Q2wuufRQFkjGtAjIyS8=@protonmail.com
обсуждение исходный текст
Ответы Re: Using "object orientated" tables?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Using "object orientated" tables?  (Tom Lane <tgl@sss.pgh.pa.us>)
RE: Using "object orientated" tables?  (Stephen Froehlich <s.froehlich@cablelabs.com>)
Список pgsql-novice
Hi,

I was wondering what the community thought of using table inheritance in PostgreSQL? Is it considered bad practice
thesedays? 

Basically, I have a users table and every user has a unique, not null UUID which is used as the primary key. There are
onlythree columns on the table. User ID, Username, Email. 

Having said that I'll have to store data about them which I don't want to do in one massive table as it would be ugly
ashell. So what I want is my main user's table to stick to three columns and then sub-tables which inherit from it to
addtheir own column? So for instance I might want to store an account balance for people making money on my site. 

Hopefully, I've managed to explain what I mean properly. If you need any extra information then let me.

Simon.
Вложения

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

Предыдущее
От: Mark Wallace
Дата:
Сообщение: Re: ALTER DEFAULT PRIVILEGES
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Using "object orientated" tables?