Re: [PATCH] Support for foreign keys with arrays

From: Noah Misch <noah(at)leadboat(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Gabriele Bartolini <gabriele(dot)bartolini(at)2ndQuadrant(dot)it>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Marco Nenciarini <marco(dot)nenciarini(at)2ndQuadrant(dot)it>
Subject: Re: [PATCH] Support for foreign keys with arrays
Date: 2011-12-12 00:46:17
Message-ID: 20111212004617.GC10399@tornado.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 17, 2011 at 12:08:32AM -0500, Tom Lane wrote:
> The least we could do is invent some non-spec syntax that makes the
> intention clear, rather than having the system assume that an error case
> was intended to mean something else. Maybe
>
> pids INTEGER[] ARRAY REFERENCES pt,

+1. Perhaps this for the table_constraint syntax:

FOREIGN KEY (ARRAY foo, bar, ARRAY pids) REFERENCES pt

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-12-12 02:16:57 Re: Why do regression tests now leave "regress_test_role_super" around?
Previous Message Noah Misch 2011-12-12 00:45:06 Re: [PATCH] Support for foreign keys with arrays