Re: [HACKERS] GSoC 2017: Foreign Key Arrays

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Mark Rofail <markm(dot)rofail(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Alexander Korotkov <aekorotkov(at)gmail(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, David Steele <david(at)pgmasters(dot)net>, Erik Rijkers <er(at)xs4all(dot)nl>, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hans-Jürgen Schönig <hs(at)cybertec(dot)at>
Subject: Re: [HACKERS] GSoC 2017: Foreign Key Arrays
Date: 2018-02-03 15:14:32
Message-ID: a942231d-23ba-a9fd-ed43-f3ae046b50a7@proxel.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 02/01/2018 04:17 PM, Mark Rofail wrote:
> since its a polymorphic function it only passes if the `anyarray` is the
> same type of the `anyelement` so we are sure they are the same type.
> Can't we get the type from the anyarray ? the type is already stored in
> ` arr_type`.

In theory, yes, but I saw no obvious way to get it without major changes
to the code. Unless I am missing something, of course.

If I am right my recommendation for getting this patch in is to
initially skip the new operators and go back to the version of the patch
which uses @>.

Andreas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Rofail 2018-02-03 15:19:06 Re: [HACKERS] GSoC 2017: Foreign Key Arrays
Previous Message Michael Paquier 2018-02-03 13:49:35 Re: Regexp named capture groups