dollar-quoting in psql and in general - Mailing list pgsql-hackers

From Philip Warner
Subject dollar-quoting in psql and in general
Date
Msg-id 6.1.1.1.0.20040812112535.04968570@203.8.195.10
Whole thread Raw
Responses Re: dollar-quoting in psql and in general
Re: dollar-quoting in psql and in general
List pgsql-hackers
While trying to understand dollar-quoting, I found the following in psql:
   select $a$ hello $a$;

behaves as expected, but psql does not like
   select $a$ \ $a$;
or   select $a$ \\ $a$;

Should it? How should a dollar-quote handle:
   $a$ \$a\$a $a$

?



----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                 |    --________--
PGP key available upon request,  |  /
and from pgp.mit.edu:11371       |/  



pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: pg_dump 'die_on_errors'
Next
From: Tom Lane
Date:
Subject: Re: Coming soon: PG 7.4.4, 7.3.7, 7.2.5