Re: Proposed fix for Bug #15259 (invalid empty array returned by intarray "&" operator)

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexey Kryuchkov <alexey.kruchkov@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2018-07-09T18:28:55Z
Lists: pgsql-hackers
Alexey Kryuchkov <alexey.kruchkov@gmail.com> writes:
> The attached patch fixes Bug #15259 [1] in the intarray module, making the
> '&' array intersection operator return proper zero-dimensional empty arrays
> instead of one-dimensional, zero-length "empty" arrays.

LGTM, pushed.  Thanks for the report and patch!

			regards, tom lane


Commits

  1. Fix yet more problems with incorrectly-constructed zero-length arrays.