pgsql: Fix psql \d commands to behave properly when a pattern using - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix psql \d commands to behave properly when a pattern using
Date
Msg-id 20061010161528.DF5A59FB2DA@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/bin/psql:
        describe.c (r1.111.4.1 -> r1.111.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/describe.c.diff?r1=1.111.4.1&r2=1.111.4.2)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix psql \d commands to behave properly when a pattern using
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix psql \d commands to behave properly when a pattern using