|
|||||||||||
|
Re: [GENERAL] postgresql table inheritance
From: Martijn van Oosterhout <kleptog(at)svana.org>
Date: Fri Nov 30 2007 - 09:20:57 EST
I think this person is slightly confused. > Table inheritence doesn't even make sense. Tables are analogous to Easy, by having the columns of one table be a subset of the columns or another table. Perhaps someone should point out an example, like a table with "people" and subtables "employees" and "customers". The subtables share the columns of the parent tables. This is nothing that any OO language doesn't do. > The correct way to store types and subtypes in the database is to store them His example is a little wierd, but it is possible:
test=# create type foo as (a text, b text);
CREATE TYPE
The syntax is different but the ideas are there... Have a nice day, -- Martijn van Oosterhout < kleptog(at)svana.org> http://svana.org/kleptog/Received on Fri Nov 30 09:22:16 2007 This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 20:59:44 EDT |
||||||||||
|
|||||||||||