Re: inheritance. more.

Поиск
Список
Период
Сортировка
От Gurjeet Singh
Тема Re: inheritance. more.
Дата
Msg-id 65937bea0804300430u4bb10349nc1aeeef7f8c516c1@mail.gmail.com
обсуждение исходный текст
Ответ на Re: inheritance. more.  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: inheritance. more.
Re: inheritance. more.
Список pgsql-general
On Tue, Apr 29, 2008 at 11:47 AM, Martijn van Oosterhout <kleptog@svana.org> wrote:
On Tue, Apr 29, 2008 at 06:31:30AM +0530, Gurjeet Singh wrote:
> On Mon, Apr 28, 2008 at 8:01 PM, Erik Jones <erik@myemma.com> wrote:
> > Postgres doesn't yet handle inheritance of constraints from parent to
> > child tables via inheritance.

> Was it done by design or was it a limitation we couldn't get over?

Inheritence of most constraints works, just not unique constraints. The
problem of managing a unique index over multiple tables has not yet
been solved (it's a reasonably hard problem).


I completely agree with the difficulty of the problem. One of the advantages of breaking up your data into partitions, as professed by Simon (I think) (and I agree), is that you have smaller indexes, which improve performance. And maybe having one huge index managing the uniqueness across partitioned data just defeats the idea of data partitioning!

Best regards,
--
gurjeet[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | indiatimes | yahoo }.com

EnterpriseDB      http://www.enterprisedb.com

Mail sent from my BlackLaptop device

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

Предыдущее
От: Andy Anderson
Дата:
Сообщение: Quoting "
Следующее
От: "Peter Geoghegan"
Дата:
Сообщение: Performing a sub-query in a SELECT SUM aggregate.