| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
| Subject: | Re: [HACKERS] dollar quoting |
| Date: | 2004-02-15 05:45:04 |
| Message-ID: | 5693.1076823904@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> Tom Lane wrote:
>> ... But how about
>> 42$foo$
>> This is a syntax error in 7.4, and we propose to redefine it as an
>> integer literal '42' followed by a dollar-quote start symbol.
> The test should not succeed anywhere in the string '42$foo$'.
No, it won't. The problem is that it should, because the backend will
see that as '42' followed by a $foo$ quote start.
> Interacting with lexer states would probably be ... unpleasant. Matching
> a stream oriented lexer with a line oriented CLI would be messy I suspect.
I think it would not be that bad. We'd have to run the lexer on the
command input buffer and see what state it terminates in.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Neil Conway | 2004-02-15 06:34:42 | Re: Renaming tables to other schemas |
| Previous Message | Bort, Paul | 2004-02-15 04:58:48 | Re: Cannot read block error. |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas Hallgren | 2004-02-15 14:21:40 | Re: Some new SPI functions |
| Previous Message | Tom Lane | 2004-02-15 05:40:14 | Re: Some new SPI functions |