>
>
> My first instinct is that we need to build the array with appendPGArray()
> and then append it to the query using appendStringLiteralAH(), as done in
> the attached patch.
>
This patch looks good to me, though I'm wondering if we should add a test
case.