Skip site navigation (1) Skip section navigation (2)

Re: Foreign key constraint for array-field?

From: David Fetter <david(at)fetter(dot)org>
To: Dmitry Koterov <dmitry(at)koterov(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Foreign key constraint for array-field?
Date: 2008-09-21 03:46:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Sun, Sep 21, 2008 at 04:38:56AM +0400, Dmitry Koterov wrote:
> Hello.
> Is it possible to create a foreign key constraint for ALL elements of
> an array field?

Whether it's possible or not--it probably is--it's a very bad idea.
Just normalize :)

David Fetter <david(at)fetter(dot)org>
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres:

In response to


pgsql-hackers by date

Next:From: Joshua D. DrakeDate: 2008-09-21 03:47:53
Subject: Re: Do we really need a 7.4.22 release now?
Previous:From: Tom LaneDate: 2008-09-21 02:52:09
Subject: Re: Common Table Expressions (WITH RECURSIVE) patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group