Move processNamePattern into dumputils.c in preparation for using it in

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

Commit: 39ed8c4049c2900af348059efe362becdcaf9eb1
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-10-09T23:30:33Z
Releases: 8.2.0
Move processNamePattern into dumputils.c in preparation for using it in
pg_dump as well as psql.  Since psql already uses dumputils.c, while there's
not any code sharing in the other direction, this seems the easiest way.
Also, fix misinterpretation of patterns using regex | by adding parentheses
(same bug found previously in similar_escape()).  This should be backpatched.

Files

PathChange+/−
src/bin/pg_dump/dumputils.c modified +203 −2
src/bin/pg_dump/dumputils.h modified +7 −1
src/bin/psql/describe.c modified +58 −260