pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Gauri Kanekar <meetgaurikanekar@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Partitioned Tables Foreign Key Constraints Problem
Date: Fri, 25 Jul 2008 15:31:55 -0700
Message-ID: <488A545B.4070609@agliodbs.com> (raw)
In-Reply-To: <7e4ba9550807240315q22c955a7t4c3895b94aa2138d@mail.gmail.com>
References: <7e4ba9550807240315q22c955a7t4c3895b94aa2138d@mail.gmail.com>

Gauri,

> How can we define the Foreign_key constraint on "other_tbl" based upon 
> any partitioned table field.

Currently PostgreSQL doesn't have any simple way to support this.  There 
are a few workarounds, but they're fairly awkward, such as a trigger to 
check if the ID is correct.

--Josh




view thread (2+ messages)

Message-ID: <488A545B.4070609@agliodbs.com>
Permalink:  ../488A545B.4070609@agliodbs.com/
Also on:    postgresql.org/message-id/488A545B.4070609@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, meetgaurikanekar@gmail.com
  Subject: Re: Partitioned Tables Foreign Key Constraints Problem
  In-Reply-To: <488A545B.4070609@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox