dollar-quoting in psql and in general

Поиск
Список
Период
Сортировка
От Philip Warner
Тема dollar-quoting in psql and in general
Дата
Msg-id 6.1.1.1.0.20040812112535.04968570@203.8.195.10
обсуждение исходный текст
Ответы Re: dollar-quoting in psql and in general  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: dollar-quoting in psql and in general  (Andrew Dunstan <andrew@dunslane.net>)
Список 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 по дате отправления:

Предыдущее
От: Philip Warner
Дата:
Сообщение: Re: pg_dump 'die_on_errors'
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Coming soon: PG 7.4.4, 7.3.7, 7.2.5