Re: [PGSQL 8.3.5] How to handle FKs with partitioning?

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Reg Me Please" <regmeplease(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [PGSQL 8.3.5] How to handle FKs with partitioning?
Date: 2008-12-19 16:15:56
Message-ID: b42b73150812190815l4840b448h5b6a7ed0ea5081db@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Dec 19, 2008 at 6:04 AM, Reg Me Please <regmeplease(at)gmail(dot)com> wrote:
> Hi all.
>
> I need to implement something very similar to temporal table partitioning as
> described in the documentation at chapter 5.9.
>
> My issues come from the fact that I have other tables that references (FKs) to
> the table(s) to be partitioned. Those references are enforced by means of DRI
> statements (REFERENCES ...).
>
> As the table containing the referenced data will not be a single table, will I
> be forced to drop DRI?
> The referencing table(s) don't need to be partitioned, though and have also
> other FKs to other tables.
>
> Is there any other solution as I would keep DRI?

Write a trigger.

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-12-19 16:53:33 Re: Question about inscrutable cast syntax
Previous Message Kevin Murphy 2008-12-19 15:59:43 Question about inscrutable cast syntax