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)
commit14a11c4e93ae51a730f9ea371a26bc5009182dff
treeb730f8fbb799ca7863a47edca467c5658fd900c6
parente9f5ab6aab2ca045df8dd66f90517d1d0b494c6b
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