Re: Foreign key constraint for array-field?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: dmitry(at)koterov(dot)ru, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Foreign key constraint for array-field?
Date: 2008-09-21 19:07:05
Message-ID: 48D69B59.6010402@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Simon Riggs wrote:
> No, its not possible. Need a trigger.
>
> I think we should support it though. If we extend the relational model
> with arrays then it would be sensible if we support this aspect as
> well.
>
> Implementation would be fairly straightforward. ri_triggers currently
> assumes a non-array value is being checked, but that could be changed to
> IN(array). Multi-column keys with arrays sound confusing though.
>
>

What's the syntax going to look like?

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2008-09-21 19:12:13 Re: Foreign key constraint for array-field?
Previous Message Dmitry Koterov 2008-09-21 18:49:56 Re: Foreign key constraint for array-field?