Back-patch fix for extraction of fixed prefixes from regular expressions.

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

Commit: d2bb45d8e3f974632c1c632d5b339510068f5bae
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-07-10T22:00:55Z
Releases: 8.3.20
Back-patch fix for extraction of fixed prefixes from regular expressions.

Back-patch of commits 628cbb50ba80c83917b07a7609ddec12cda172d0 and
c6aae3042be5249e672b731ebeb21875b5343010.  This has been broken since
7.3, so back-patch to all supported branches.

Files