]> granicus.if.org Git - postgresql/commit
Fix psql \d commands to behave properly when a pattern using regex | is given.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Oct 2006 16:15:42 +0000 (16:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Oct 2006 16:15:42 +0000 (16:15 +0000)
commit727517363673caec1f3a376f20862ab2e52fcec7
tree668a5b3e6c3cd303afed8056e56ccf780eb89b76
parentb25ddbb81ea113210367374117b9d79584d665b4
Fix psql \d commands to behave properly when a pattern using regex | is given.
Formerly they'd emit '^foo|bar$' which is wrong because the anchors are
parsed as part of the alternatives; must emit '^(foo|bar)$' to get expected
behavior.  Same as bug found previously in similar_escape().  Already fixed
in HEAD, this is just back-porting the part of that patch that was a bug fix.
src/bin/psql/describe.c