From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PATCHES] dollar quoting |
Date: | 2004-02-16 02:16:21 |
Message-ID: | 403027F5.4070005@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane wrote:
>Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>
>
>>andrew=# create table ab$cd$ef (ef$cd$ab text);
>>CREATE TABLE
>>andrew=# \d ab$cd$ef
>>Did not find any relation named "ab$cd$ef".
>>
>>
>
>Hmph. I always thought that "$" was only special at the end of a regex,
>but that doesn't seem to be how our implementation treats it. Anyway
>this is not a bug, it is a feature: the argument of \d is a regex.
>
>
>
Arguably this at least is a singularly useless feature, since a
regex-meaning $ before the end of string is a nonsense, as you rightly
imply, and one at the end of the string is redundant, as it is implied -
psql turns 'abc' into '^abc$' when constructing the query.
I don't care that much - I don't use $ in my identifiers.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2004-02-16 02:33:06 | Re: Concurrence GiST |
Previous Message | Christopher Kings-Lynne | 2004-02-16 01:23:50 | Re: No Timeout in SELECT..FOR UPDATE |
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Gibson | 2004-02-16 10:50:38 | Re: dblink - custom datatypes NOW work :) |
Previous Message | Tom Lane | 2004-02-15 22:17:18 | Re: [PATCHES] dollar quoting |