Fix LIKE's special-case code for % followed by _. I'm not entirely sure that

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

Commit: fc2660fc253ce871b2f26e7b6dce133092357cb0
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-05-24T18:10:38Z
Releases: 8.4.0
Fix LIKE's special-case code for % followed by _.  I'm not entirely sure that
this case is worth a special code path, but a special code path that gets
the boundary condition wrong is definitely no good.  Per bug #4821 from
Andrew Gierth.

In passing, clean up some minor code formatting issues (excess parentheses
and blank lines in odd places).

Back-patch to 8.3, where the bug was introduced.

Files