Re: Inherit trouble - Mailing list pgsql-general

From Chris Travers
Subject Re: Inherit trouble
Date
Msg-id CAKt_ZftEEGV_i8j_A6ay5N+D8bxFqjifdWc7_Z23DJP5GcM8UA@mail.gmail.com
Whole thread Raw
In response to Re: Inherit trouble  ("David Johnston" <polobo@yahoo.com>)
List pgsql-general
On Wed, Jul 6, 2011 at 3:13 PM, David Johnston <polobo@yahoo.com> wrote:
>
> The product 9 is a hard drive, so it's inserted in the hard drive table, but
> as it inherits product, I see it in product table too.
>
> Why do i Have this message ? Can you help me ?

First you need to have some way to differentiate what goes in the
tables if they need to be partitioned that way.
Then you can create an inheriting table for the fkey maps too and use
rules to select which table a row goes into.  Note:  Use DO INSTEAD
not DO ALSO rules.  DO ALSO with inserts are big foot guns.

Best Wishes,
Chris Travers

pgsql-general by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Streaming replication on 9.1-beta2 after pg_restore is very slow
Next
From: Joe Lester
Date:
Subject: failed archive command