Andrew - Supernews <andrew+nonews(at)supernews(dot)com> writes:
> We were discussing this one on irc while it was presumably waiting in the
> moderation queue, and I suggested to the poster an alternative patch that
> allowed empty arrays to actually be treated as empty (your version will
> error out on int_array_enum('{}') rather than producing 0 rows, which seems
> unhelpful).
Done, but not back-patched since this seems more in the nature of a new
feature than a crash preventative.
regards, tom lane