Move processNamePattern into dumputils.c in preparation for using it in
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Oct 2006 23:30:33 +0000 (23:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Oct 2006 23:30:33 +0000 (23:30 +0000)
commit39ed8c4049c2900af348059efe362becdcaf9eb1
tree2263151b5c820db8f2566916725a46ea202c02e1
parentd9dddd11000a1f97ad521af7466cc3fb89666997
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.
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/dumputils.h
src/bin/psql/describe.c