John Naylor <john.nay...@2ndquadrant.com> writes: > On Tue, Jan 8, 2019 at 5:31 PM Tom Lane <t...@sss.pgh.pa.us> wrote: >> The length macro was readily available there so I used it. AFAIR >> that wasn't true elsewhere, though I might've missed something. >> It's pretty much just belt-and-suspenders coding anyway, since all >> those arrays are machine generated ...
> I tried using the available num_keywords macro in plpgsql and it > worked fine, but it makes the lines really long. Alternatively, as in > the attached, we could remove the single use of the core macro and > maybe add comments to the generated magic numbers. Meh, I'm not excited about removing the option just because there's only one use of it now. There might be more-compelling uses later. regards, tom lane