Re: FK violation on (emtpy) parent table

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: FK violation on (emtpy) parent table
Date: 2011-09-04 09:54:20
Message-ID: j3vhsc$abf$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2011-08-11, Louis-David Mitterrand <vindex+lists-pgsql-general(at)apartia(dot)org> wrote:
> Hi,
>
> I have an empty parent 'price' table with several partitioned child
> tables that contain the actual data.
>
> How can I reference the parent 'price' table in a FK? When I try I get a
> FK violation. Is that expected behavior? Is there another way to do it?

AFAIK "you can't" and "no".

--
⚂⚃ 100% natural

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2011-09-04 10:03:53 Re: Parameterized prepared statements
Previous Message Sim Zacks 2011-09-04 05:44:42 Re: md5 of table