Re: [HACKERS] GSoC 2017: Foreign Key Arrays - Mailing list pgsql-hackers

From Mark Rofail
Subject Re: [HACKERS] GSoC 2017: Foreign Key Arrays
Date
Msg-id CAJvoCuuJGzxNBcb5Lb+mjo+iouWJRC-LTsj7RrzJAtP4WyVafg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] GSoC 2017: Foreign Key Arrays  (Mark Rofail <markm.rofail@gmail.com>)
Responses Re: [HACKERS] GSoC 2017: Foreign Key Arrays  (Alexander Korotkov <aekorotkov@gmail.com>)
List pgsql-hackers
Updates till now:
  • added a record to pg_proc (src/include/catalog/pg_proc.h)
  • modified opr_sanity regression check expected results
  • implemented a  low-level function called `array_contains_elem` as an equivalent to `array_contain_compare` but accepts anyelement instead of anyarray as the right operand. This is more efficient than constructing an array and then immediately deconstructing it.
Questions:
  • I'd like to check that anyelem and anyarray have the same element type. but anyelem is obtained from PG_FUNCTION_ARGS as a Datum. How can I make such a check?
Best Regards,
Mark Rofail
Attachment

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: [HACKERS] INSERT ... ON CONFLICT () SELECT
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Preliminary results for proposed new pgindentimplementation