Re: [HACKERS] GSoC 2017: Foreign Key Arrays

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Mark Rofail <markm(dot)rofail(at)gmail(dot)com>
Cc: Joel Jacobson <joel(at)compiler(dot)org>, Alexander Korotkov <aekorotkov(at)gmail(dot)com>, David Steele <david(at)pgmasters(dot)net>, Andreas Karlsson <andreas(at)proxel(dot)se>, Hans-Jürgen Schönig <hs(at)cybertec(dot)at>, Erik Rijkers <er(at)xs4all(dot)nl>, Michael Paquier <michael(at)paquier(dot)xyz>, Robert Haas <robertmhaas(at)gmail(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Zhihong Yu <zyu(at)yugabyte(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] GSoC 2017: Foreign Key Arrays
Date: 2021-02-21 22:23:08
Message-ID: 20210221222308.GP14772@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Feb 16, 2021 at 12:07:10PM +0200, Mark Rofail wrote:
...

There's some errors in the latest patch:

http://cfbot.cputube.org/mark-rofail.html

gram.y:16933:20: error: invalid operands to binary expression ('List' (aka 'struct List') and 'void *')
Assert(**reftypes != NULL);

Did you mean to write this, before the assignment of NIL ?

Assert(reftypes != NULL);
Assert(names != NULL);

Apparently these Asserts were added last month.

The windows build succeeded, but checks failed like:

SELECT * FROM FKTABLEFORARRAYGIN WHERE ftest1 @>> 5;
ftest1 | ftest2
--------------+--------
- {5} | 1
- {3,5,2,5} | 3
- {3,5,4,1,3} | 5
- {5,1} | 7
- {3,4,5,3} | 10
-(5 rows)
+--------+--------
+(0 rows)

Would you send an updated patch to address these ?

I suggest to generate the patch series with:
git format-patch -v2 origin.. -o patch/foreign-key-arrays/

That generates patches with a prefix like 0001, indicating which one goes
"first" (and therefore doesn't depend on the others).

--
Justin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2021-02-21 22:26:26 Re: repeated decoding of prepared transactions
Previous Message Tomas Vondra 2021-02-21 21:56:03 Re: [PATCH] Present all committed transaction to the output plugin